FS#13914 - [xapps] Warning: locale not supported by Xlib, locale set to C

Attached to Project: Arch Linux
Opened by Lars Stokholm (stokholm) - Sunday, 22 March 2009, 10:41 GMT
Last edited by Jan de Groot (JGC) - Saturday, 01 August 2009, 17:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When using LOCALE="en_DK.utf8" instead of LOCALE="en_US.utf8" xterm, xcalc, xfontsel, xeyes and other xapps throws me this warning: "Warning: locale not supported by Xlib, locale set to C". What's worse is that xterm will behave in a strange way with Danish special characters, as described here: http://bbs.archlinux.org/viewtopic.php?pid=518752 - I imagine there are similar effects with other non en_US character sets, but I'm not sure.

Additional info:
* package version(s)
libx11 1.2-1 (I'm not sure if this is even the same as Xlib)
xorg-server 1.5.3-4
xorg-apps 7.4-1
xterm 241-1
* config and/or log files etc.
$ locale -a
C
POSIX
en_DK
en_DK.iso88591
en_DK.utf8

Steps to reproduce:
Uncomment the en_DK character sets in /etc/locale-gen. Run locale-gen as root. Then run: 'LC_ALL=en_DK.utf8 xterm'. It probably doesn't have any other effect than the warning, until you start using a Danish keyboard.
This task depends upon

Closed by  Jan de Groot (JGC)
Saturday, 01 August 2009, 17:11 GMT
Reason for closing:  Upstream
Additional comments about closing:  en_DK is not supported by libx11. File a bug upstream to get it included.
Comment by Petri Ylitalo (noekoe) - Sunday, 05 April 2009, 08:35 GMT
Exactly the same things as described above and in http://bbs.archlinux.org/viewtopic.php?pid=518752 happen with Finnish locale fi_FI.utf8. All package versions are the same.
Comment by Lars Stokholm (stokholm) - Sunday, 05 April 2009, 18:54 GMT
I found out that it's the LC_CTYPE variable that's causing it to complain. So setting LC_CTYPE (I do it in Openbox's autorun.sh) to en_US.utf8 f.x. will work arround the problem. I haven't experienced any side effects.
Comment by Jan de Groot (JGC) - Sunday, 14 June 2009, 11:49 GMT
en_DK is not a supported locale in libx11 (/usr/share/X11/locale/locale.alias contains all supported locales). fi_FI.utf8 is supported in recent versions of libx11.

Loading...