unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Intermittent problem with unencodable-char-position
@ 2010-04-14  4:19 Harald Hanche-Olsen
  2010-04-14  4:38 ` Harald Hanche-Olsen
  0 siblings, 1 reply; 4+ messages in thread
From: Harald Hanche-Olsen @ 2010-04-14  4:19 UTC (permalink / raw)
  To: emacs-devel

Evaluating the form

(unencodable-char-position 0 5 'iso-latin-1-unix 1 "100 Ω")

normally returns the list (4), since capital Omega is not encodable in
latin-1. However, after I have run emacs for a while, it happens that
this form begins to return nil [*]. I have no idea what triggers this
behaviour, and the only cure seems to be to quit and restart emacs.

I suspect some internal memory corruption, but if anyone here can
suggest another possible reason, I'd like to hear about it. Or if you
can think of a debugging technique that might shed some light on this,
I'll be happy to try it when it happens again. (I warn you that I run
on OS X, though, so debugging is, um, different.)

[*] I notice because attempts to save a buffer containing non-latin-1
characters with the latin-1 charset fails without the usual offer to
select a different character set. I have narrowed the problem down to
the above behaviour inside select-safe-coding-system-interactively.
(That code doesn't use the string argument, but it happens whether you
look at a string or the current buffer.)

- Harald




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-14 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14  4:19 Intermittent problem with unencodable-char-position Harald Hanche-Olsen
2010-04-14  4:38 ` Harald Hanche-Olsen
2010-04-14 15:42   ` Harald Hanche-Olsen
2010-04-14 16:11     ` Harald Hanche-Olsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).