Re: emacs -nw in UTF-8 xterm does not work
On 2006-12-05 00:34:49 +0100, Claus Fischer wrote:
> I converted my Debian etch system to an UTF-8 environment.
>
> Emacs in X: Works fine
> xterm: Works find
> Emacs in xterm: Trouble (e.g. within mutt)
>
> While characters are displayed correctly, both for files with UTF-8
> and with iso-8859-1 encoding (emacs detects that automatically),
> the keyboard input of characters with diacritics does not work.
> (I use an English keyboard and Compose-"-a for Umlaut-a).
Do they work in Mutt? And in the shell? And in cooked mode?
> I have tried various combinations of the following settings
> in my .emacs file, but to no avail:
>
> ; ;; My old stuff for ISO-8859-1
> ; (standard-display-european t)
> ; (iso-accents-mode 1)
> ; ;;CF 2006-12-01 (set-keyboard-coding-system 'iso-latin-1)
> ; (setq iso-accents-language "german") ; special german only in later versions
> ; (or (assq 'iso-accents-mode minor-mode-map-alist)
> ; (setq minor-mode-alist
> ; (append minor-mode-alist
> ; '((iso-accents-mode " ISO-Acc")))))
>
> ; ;; New stuff from web pages
> ; ;; Various combinations have been tried
> ; (setq locale-coding-system 'utf-8)
> ; (set-terminal-coding-system 'utf-8)
> ; (set-keyboard-coding-system locale-coding-system)
> ; (set-selection-coding-system 'utf-8)
> ; (prefer-coding-system 'utf-8)
> ; (prefer-coding-system locale-coding-system)
> ; (when (not window-system)
> ; (set-keyboard-coding-system locale-coding-system)
> ; (set-terminal-coding-system locale-coding-system)
> ; )
> ; (set-input-mode (car (current-input-mode)) (nth 1 (current-input-mode)) 1)
In fact, under Debian, you shouldn't need anything. For instance,
if I type "emacs -q blah" in a uxterm, the status bar says:
-uuu:---F1 blah All L1 (Fundamental)---------------------
This is worth trying, in case the problem is due to some .emacs code.
> $ locale
> LANG=en_GB.UTF-8
> LANGUAGE=en_AT:en_US:en_GB:en
> LC_CTYPE="en_GB.UTF-8"
> LC_NUMERIC="en_GB.UTF-8"
> LC_TIME="en_GB.UTF-8"
> LC_COLLATE=C
> LC_MONETARY="en_GB.UTF-8"
> LC_MESSAGES="en_GB.UTF-8"
> LC_PAPER="en_GB.UTF-8"
> LC_NAME="en_GB.UTF-8"
> LC_ADDRESS="en_GB.UTF-8"
> LC_TELEPHONE="en_GB.UTF-8"
> LC_MEASUREMENT="en_GB.UTF-8"
> LC_IDENTIFICATION="en_GB.UTF-8"
> LC_ALL=
You should also give the output of "locale charmap", but I assume it
will be UTF-8.
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Reply to: