Bug#163199: locale: cannot set single category
Package: libc6
Version: 2.2.5-11.2
Severity: normal
When tracking down a problem with mutt not correctly displaying
German umlauts I discovered a probably related problem with
'locale'. I failed to test a single category to some value:
Default:
$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
A test to set only LC_CTYPE:
$ LC_CTYPE=de_DE locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
Failed. Setting LC_ALL works:
$ LC_ALL=de_DE locale
LANG=C
LC_CTYPE="de_DE"
LC_NUMERIC="de_DE"
LC_TIME="de_DE"
LC_COLLATE="de_DE"
LC_MONETARY="de_DE"
LC_MESSAGES="de_DE"
LC_PAPER="de_DE"
LC_NAME="de_DE"
LC_ADDRESS="de_DE"
LC_TELEPHONE="de_DE"
LC_MEASUREMENT="de_DE"
LC_IDENTIFICATION="de_DE"
LC_ALL=de_DE
I hope I do not miss anything obvious but from my understanding
(and after reading the man page) the second test above should
have LC_CTYPE set to de_DE, leaving the others untouched.
Setting LANG is the only thing that works separately.
With mutt I had the problem that setting LC_CTYPE was not
enough to show umlauts correctly, but setting LC_ALL
(which is not what I want) is sufficient. Maybe that is
related.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux cave 2.4.19-pre7 #1 Sun Apr 21 17:14:40 CEST 2002 i686
Locale: LANG=C, LC_CTYPE=C
Reply to: