Hi,
At Mon, 14 May 2001 09:28:39 +0100,
Markus Kuhn <[EMAIL PROTECTED]> wrote:
> That would be nice too, but first of all, Emacs under X11 should assume
> that the opened files are (unless otherwise marked) in UTF-8 when it
> sees that nl_langinfo(CODESET) returns "UTF-8". It is not at all
> feasible in practice to give every UTF-8 file a special filename
> extension or a special header. I'd really like Emacs to simply use the
> locale to determine the encoding of a file. Then I could edit UTF-8
> files conveniently by starting emacs from within a UTF-8 xterm (where I
> have LANG=en_GB.UTF-8).
Emacs seems not using locale mechanism. Encoding for keyboard input,
terminal output, file I/O, and process I/O can be specified independently.
And more, it can have more than one encoding for file input with priority
with guessing. (This is very nice for Japanese -- it can distinguish
EUC-JP, Shift_JIS, and ISO-2022-JP almost correctly -- just as less
with Japanese patch and so on. You will feel it is convenient that
Emacs can automatically tell whether your file is ISO-8859-1 or UTF-8.
Of course, if the automatic guessing is wrong, you can override it.)
Ok, I agree that nl_langinfo(CODESET) supplies a moderate default
settings for these encodings and UTF-8 is one of many locales which
Emacs should support.
---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://www.debian.or.jp/~kubota/
"Introduction to I18N" http://www.debian.org/doc/manuals/intro-i18n/
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/