[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#209402: locales: Setting LC_CTYPE to ISO-8859-1 does not work



Package: locales
Version: 2.3.2-5
Severity: normal


Hi,

It seems that setting LC_CTYPE to ISO-8859-1 does not work for 
choosing a this specific charset, while setting it to "french" 
works.

Starting with an empty locale setting:
$ 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=

$ LC_CTYPE=ISO-8859-1 locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=C
LC_CTYPE=ISO-8859-1
LC_NUMERIC="C"
[...]

$ LC_CTYPE=ISO-8859-1 perl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "ISO-8859-1",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

$ LC_CTYPE=french perl
# OK
^D
$ 

Note that is is not perl specific. This started to bite me after I 
discovered that the default encoding in a JVM was ascii, although I 
expected it to be ISO-8859-1.
For instance, running a program that lists the system properties:
$ LC_CTYPE=ISO-8859-1 java -jar ~/Nice/tmp/test.jar
file.encoding = ANSI_X3.4-1968
$ LC_CTYPE=french java -jar ~/Nice/tmp/test.jar
file.encoding = ISO-8859-1

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux blanche 2.4.21-4-686 #1 Sat Aug 2 23:27:25 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages locales depends on:
ii  debconf                       1.3.8      Debian configuration management sy
ii  libc6 [glibc-2.3.2-5]         2.3.2-5    GNU C Library: Shared libraries an

-- debconf information:
* locales/default_environment_locale: C
* locales/locales_to_be_generated: fr_FR ISO-8859-1, fr_FR@euro ISO-8859-15, hu_HU ISO-8859-2




Reply to: