Bug#390162: xorg: conflicting locale settings and keyboard input
Package: xorg
Version: 1:7.0.22
Severity: normal
Hello,
I switched recently to utf8 encoding, but I would like to keep some
terminals as pure iso-8859-1 displays. In utf8-aware terminal, there
are no problems, but accentuated letters typed in iso-8859-1 terminal
are ignored at the shell level.
I proceed as follows:
-launch xterm +u8, which 'bash' as shell. There is nothing about utf8
in .Xressources or .Xdefaults
-stty -a shows the terminal does not support utf8 (-iutf8)
-locale is set as: export LANG=fr_BE.ISO-8859-1
-'locale' report everything is iso-8859-1
- launching programs does not generate any warning about missing
locales
- xorg keyboard configured as 105 keys, Belgian
- xev window show the code generated for é is eacute, 0xe9
- typing 'é' at the bash level does not produce anything, even with
output-meta and convert-meta set to on
- in vi, typing 'é' results in the double char 0xc3 0xa9 (utf-8)
- displaying this file with 'more' shows two graphic chars
- recode utf8..iso-8859-1 file and displaying again with more shows
the right character, 'é'
It seems that the problems results from conflicting locales:
-xterm locales from its environment are utf-8
-bash locales from its environment are iso8859-1
The problem disappears if xterm is launched as
env LANG=en_US.ISO-8859-1 xterm
Would it be possible to sort this conflict ?
TIA
Pascal Dupuis
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Versions of packages xorg depends on:
ii eterm [x-terminal 0.9.3-1 Enlightened Terminal Emulator
ii libgl1-mesa-dri 6.5.0.cvs.20060524-1.1 A free implementation of the OpenG
ii libgl1-mesa-glx 6.5.0.cvs.20060524-1.1 A free implementation of the OpenG
ii libglu1-mesa 6.5.0.cvs.20060524-1.1 The OpenGL utility library (GLU)
ii rxvt [x-terminal- 1:2.6.4-10 VT102 terminal emulator for the X
ii rxvt-unicode [x-t 7.9-2 RXVT-like terminal emulator with U
ii xbase-clients 1:7.1.ds-3 miscellaneous X clients
ii xfonts-100dpi 1:1.0.0-2 100 dpi fonts for X
ii xfonts-75dpi 1:1.0.0-2 100 dpi fonts for X
ii xfonts-base 1:1.0.0-3 standard fonts for X
ii xfonts-scalable 1:1.0.0-4 scalable fonts for X
ii xkb-data 0.8-12 X Keyboard Extension (XKB) configu
ii xserver-xorg 1:7.0.22 the X.Org X server
ii xterm [x-terminal 210-3.1 X terminal emulator
ii xutils 1:7.1.ds-1 X Window System utility programs
xorg recommends no packages.
-- no debconf information
Reply to: