Florian Weimer wrote on 2001-05-13 21:01 UTC:
> Markus Kuhn <[EMAIL PROTECTED]> writes:
> > Is there a way in Emacs Lisp to query nl_langinfo(CODESET)?
> > One of the critical things still missing from MULE-UCS is that Emacs
> > automatically activates the UTF-8 mode when it is started in a UTF-8
> > locale such as LANG=en_GB.UTF-8.
> 
> What do you mean with 'UTF-8 mode'? Switching Emacs to UTF-8 terminal
> mode?

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).

I have now in my window manager two items

  xterm (ISO 8859-1)
  xterm (UTF-8)

and they just call

  LANG=en_GB xterm &
  LANG=en_GB.UTF-8 xterm &

I just want that everything works completely automatically and smoothly
in UTF-8 once I have activated a UTF-8 locale. I don't want to have to
memorize zillions of special tricks for each single application to get
it into UTF-8 mode.

Markus

-- 
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org,  WWW: <http://www.cl.cam.ac.uk/~mgk25/>

-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/

Reply via email to