Ever since installing Sarge last month I've been plagued with these
locale error messages from perl apps like mandb & syslogd-listfiles.

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

or

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en_GB:en",
        LC_ALL = "en_US",
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

    This when LANG, LANGUAGE & LC_ALL are indeed set as shown above
in the environment.

[EMAIL PROTECTED]:~> echo $LANG $LANGUAGE $LC_ALL
en_US en_US:en_GB:en en_US

I finally got this to go away using the following steps:
    [EMAIL PROTECTED]:~> dpkg -P localepurge
    [EMAIL PROTECTED]:~> apt-get install locales localeconf
    after configuration,
    [EMAIL PROTECTED]:~/tmp> cp /usr/lib/locale/locale-archive .
    [EMAIL PROTECTED]:~> dpkg -P locales localeconf
    [EMAIL PROTECTED]:~/tmp> md /usr/lib/locale/
    [EMAIL PROTECTED]:~/tmp> mv locale-archive /usr/lib/locale/
    [EMAIL PROTECTED]:~> apt-get install localepurge

I'm sure I took the long route and hope one of you can tell me what the 
easy way would have been.

TIA,
Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to