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

Re: weird perl behaviour



On Sun, Mar 26, 2000 at 08:42:44AM +0200, spectral@hangar18.campus.luth.se wrote:
> Hello,
> 
> > I think the problem comes from having LANG="C" but
> > LC_CTYPE="iso_8859_1". Try setting your LANG environment variable in
> > /etc/environment to something that uses iso-8859-1 (en_US, en_UK, and
> > most? western European languages). The iso-8859-1 character set defines
> > twice as many characters as "C" (ASCII), and uses 8-bit encoding as
> > opposed to 7-bit for ASCII.
> 
> I set this variable but it still complains..
> i think this is what makes the trouble:
>   LC_ALL = (unset)

Don't set LC_CTYPE or any of the other LC_* variable, and just set
LANG=<whatever>. It should exhibit the correct behaviour then. All of
the LC variables will "inherit" values appropriate to the locale if just
the LANG variable is set. The only problems are then "inheriting"
behaviors for monetary types (e.g. 1,000.01 vs. 1 000,01). Perhaps
setting LC_ALL to your appropriate locale will take care of that voodoo.

-- 
+----------------------------------------------------+
| Eric G. Miller                        egm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc  |
+----------------------------------------------------+


Reply to: