ML mail wrote: > Since now already a few weeks I noticed that my locale settings on > various Debian 6.0 servers got by some mysterious way broken... For > example any tool/command using PERL will issue the following > warning: > > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LANGUAGE = (unset), > LC_ALL = (unset), > LC_CTYPE = "UTF-8", > LANG = "en_US.UTF-8" > are supported and installed on your system. > perl: warning: Falling back to the standard locale ("C").
This error is routinely generated by perl when LANG is set to a locale that does not exist on the system. This might be because the locale isn't configured or it might be because the 'locales' package is not installed. Perl has been a good indicator of locale configuration problems in recent years with this message.. You can demonstrate that this is the problem by temporarily setting the locale to C and the error will go away. $ LC_ALL=C perl -e 0 ...no output... And show that setting it to a nonexistent locale causes the error. $ env -i LC_ALL=nonexistent perl -e 0 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = "nonexistent", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). This can be fixed by installing the locales package and configuring the specified locale. # apt-get install locales And/Or: # dpkg-reconfigure locales Then configure the desired locale and the error will be avoided. Bob
signature.asc
Description: Digital signature