On Tue, Aug 14, 2001 at 11:02:13PM -0500, Rogelio E. Castillo Haro wrote:
> Hi!
> When i use apt-get...I've the next message:
> 
> 
> 
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>               LANGUAGE = (unset),
>                LC_ALL = (unset),
>                       LANG = "en.ISO8859-1"
> are supported and installed on your system.
> perl: warning: Falling back to the standar locale ("C").
> 
> This happens later I use red carpet to upgrade a lot of packages... :(
> Where can I set this parameters?

The environment variable setting 'LANG=en.ISO8859-1' isn't valid. Try
'LANG=en_US.ISO-8859-1' instead; it might be in your shell startup
scripts or something.

Here's a quick way to tell if a locale is valid (although of course you
could just run perl, too :)):

  [EMAIL PROTECTED] ~]$ cat testlocale.c
  #include <stdio.h>
  #include <locale.h>
  int main() {
          printf ("%s\n", setlocale (LC_ALL, ""));
          return 0;
  }
  [EMAIL PROTECTED] ~]$ make testlocale
  cc     testlocale.c   -o testlocale
  [EMAIL PROTECTED] ~]$ ./testlocale 
  C
  [EMAIL PROTECTED] ~]$ LC_ALL=en.ISO8859-1 ./testlocale
  (null)
  [EMAIL PROTECTED] ~]$ LC_ALL=en_US.ISO-8859-1 ./testlocale
  en_US.ISO-8859-1

-- 
Colin Watson                                  [EMAIL PROTECTED]

Reply via email to