TQuid has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I keep getting this error:
perl: warning: Please check that your locale settings: LC_ALL = (unset), LC_CTYPE = "ISO8859-1", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
I've looked at the locale man page and such, but am frankly clueless about how to set this up correctly. Here's the output of perl -V:
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuratio +n: Platform: osname=freebsd, osvers=4.0-stable, archname=i386-freebsd-thread-mu +lti uname='freebsd tiresias.intergate.ca 4.0-stable freebsd 4.0-stable + #1: wed jun 28 04:47:13 gmt 2000 root@tiresias.intergate.ca:usrsrcsy +scompiletiresias i386 ' config_args='-Dusethreads -Duse5005threads -des' hint=previous, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=u +ndef Compiler: cc='cc', optimize='-O2', gccversion=2.95.2 19991024 (release) cppflags='-fno-strict-aliasing -I/usr/local/include' ccflags ='-fno-strict-aliasing -I/usr/local/include' stdchar='char', d_stdstdio=undef, usevfork=true intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags ='-pthread -Wl,-E -L/usr/local/lib' libpth=/usr/lib /usr/local/lib /usr/local/lib/mysql libs=-lm -lc_r -lcrypt libc=, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL +_IMPLICIT_CONTEXT Built under freebsd Compiled at Jun 29 2000 12:46:48 @INC: /usr/local/lib/perl5/5.6.0/i386-freebsd-thread-multi /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i386-freebsd-thread-multi /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .

Replies are listed 'Best First'.
Re: locale error after install of 5.6
by BlueLines (Hermit) on Jul 06, 2000 at 04:40 UTC
    I just added the following in my .bashrc / .bash_profile files :
    export LANG=en_US

    for tcsh, you can use:
    setenv LANG en_US

    and if you use zsh, you can make it work correctly by first doing:
    rm `which zsh` ln -s `which bash || which tcsh` /bin/zsh

    and then following the above instructions :-)

    Note: one of these is a joke and the other two are serious.
Re: locale error after install of 5.6
by ZZamboni (Curate) on Jul 06, 2000 at 04:05 UTC
    I had this problem too, and it seemed to be cause by the LANG environment variable having the value "(unset)". Undefining LANG solved the problem.

    --ZZamboni

Re: locale error after install of 5.6
by TQuid (Sexton) on Jul 06, 2000 at 22:20 UTC
    Thanks everyone. I found out I had a couple of bogus settings in an old .profile.locale file, imported from my account on a different machine. Eliminating them fixed the problem. --TQuid