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

Bug#369388: /usr/bin/locale: misleading error: locale: Cannot set LC_ALL to default locale: No such file or directory



Package: libc6
Version: 2.3.6-7
Severity: normal
File: /usr/bin/locale

Hi,

I stomped over this error message when one of the LC_* variables was set
to a locale that was not generated on that particular machine. It had
nothing to do with LC_ALL (which is unset) and can be reproduced by
doing

$ LC_NAME=foobar locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="POSIX"
LC_TIME=en_DK.UTF-8
LC_COLLATE=POSIX
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME=foobar
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

The error message should probably mention the variable (LC_NAME instaed
of LC_ALL) and the invalid/unavailable setting ('foobar' in this case).
What's the 'default locale' the error mentions?


Andreas

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libc6 depends on:
ii  tzdata                        2006c-2    Time Zone and Daylight Saving Time

libc6 recommends no packages.

-- no debconf information



Reply to: