Re: Locales, Mutt, OpenOffice, Emacs
On November 1, 2002 at 6:12PM +0100,
Vincent Lefevre <vincent@vinc17.org> wrote:
> On Sat, Nov 02, 2002 at 01:36:50 +0900, Tatsuya Kinoshita wrote:
> > Unfortunately, (terminal-coding-system) is nil in Emacs even if
> > the LANG envionment variable is set to `en_US.UTF-8'. So, the
> > above configuration is required on the UTF-8 terminal.
>
> But what if one uses sometimes ISO-8859-1 and sometimes UTF-8?
If the LANG environment variable is `en_US', Emacs uses
iso-latin-1 for (terminal-coding-system) by default. For UTF-8
locales, see below.
-- ~/.emacs --
;;(set-language-environment "Latin-1")
;;(setq default-input-method "latin-1-prefix")
(let (locale)
(let ((vars '("LC_ALL" "LC_CTYPE" "LANG")))
(while (and vars (not (setq locale (getenv (car vars)))))
(setq vars (cdr vars))))
(cond
((and (stringp locale)
(string-match "UTF-8\\>" locale))
(set-terminal-coding-system 'utf-8))))
----
Anyway, Emacs 21.2 seems that UTF-8 features are not yet
completed.
--
Tatsuya Kinoshita
Reply to: