Annoyance with coding systems

Fabrice Popineau Fabrice.Popineau at supelec.fr
Mon Jun 6 10:35:15 EDT 2005


* Stephen J Turnbull <stephen at xemacs.org> writes:

    > Easy to check.  What does M-: current-language-environment RET
    > tell you when your system is set to French locale?

Strangely, it is returning 'French'. And
'buffer-file-coding-system-for-read is returning 'undecided.

For the moment, I get this with a fresh xemacs:

(coding-priority-list)
(no-conversion utf-16-little-endian-bom utf-16-bom utf-8-bom iso-7 utf-8 iso-8-1 iso-8-2 iso-8-designate iso-lock-shift shift-jis big5 utf-16-little-endian utf-16 ucs-4)
coding-system-for-read
nil
buffer-file-coding-system-for-read
undecided

At this point, if I find-file the kind of text in my earlier message,
then I get Big5 encoding.

Currently, I only have this solution to overcome the problem:

(set-buffer-file-coding-system-for-read 'iso-8859-1)
or
(set-buffer-file-coding-system-for-read 'mswindows-multibyte-system-default)

BTW, which one is preferable?

Even if I try to (set-language-environment 'Latin-1), the wrong coding system
is chosen.

I have also tried to use:
(set-coding-priority-list '(iso-8-1))

Strangely, it does not replace the coding-priority-list, but rather
merges what it is given in front of it. And it does not change anything
to my problem contrarily to what I would have expected.

Not sure all this stuff is well suited to beginners...

-- 
Fabrice




More information about the XEmacs-Beta mailing list