[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: local chars displayed as numbers

From: Stefan Monnier
Subject: Re: local chars displayed as numbers
Date: Fri, 22 Sep 2006 10:32:20 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I've just added windows-1252 in `coding-priority' info of
> "Laint-1" and "German" language environment.

I'm not sure this is right, because windows-1252 covers basically all bytes,
so there's no way to find out that a file is not in windows-1252.  It's not
terrible, but it means that this change is not completely harmless.
Now, given the fact that this problem is rare I'm not sure it's worth
the risk.

A better solution is a new command which would
try to explain to the user why what he sees is not what he expected.
I.e. the user could point to a \NNN char and do M-x explain-decoding-error,
and then get an explanation like "this byte-sequence here prevented the use
of utf-8, that byte-sequence there prevented the use of latin-1, ...".
And she could even say C-u <somechar> M-x find-coding-system, and Emacs
could try and figure out which coding-system to use such that the \NNN gets
properly decoded into <somechar>.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]