Bug#518832: locales: Default locale.alias should include aliases for language codes (breaks ruby)
Package: locales
Version: 2.7-18
Severity: normal
Several ruby applications in squeeze try to set LANG="en", which isn't
a valid locale name. Affected applications include apt-listbugs 0.0.95
and sup-mail 0.6-4. Ruby is ruby1.8 1.8.7.72-3.
For example, sympthoms when running apt-listbugs:
$ sudo apt-listbugs list ruby1.8
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
Reading package fields... Done
Reading package status... Done
...
Stracing shows that ruby does this: "LANG=en locale charmap"
$ LANG=en locale charmap
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
ANSI_X3.4-1968
...while the correct answer for my system would be UTF-8.
I fixed it for myself by adding "en en_US.UTF-8" to my
/etc/locale.alias, but manual tweaking like this shouldn't be
necessary. I'm not sure in which package the issue should be fixed.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages locales depends on:
ii debconf [debconf-2.0] 1.5.25 Debian configuration management sy
ii libc6 [glibc-2.7-1] 2.7-18 GNU C Library: Shared libraries
locales recommends no packages.
locales suggests no packages.
-- debconf-show failed
Reply to: