Locale problem with perl
From: Angus Mackenzie (angus_at_romsley.demon.co.uk)
Date: 09/30/04
- Previous message: Noah Durell: "Re: emu10k1x"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 16:31:10 +0100 To: debian-user@lists.debian.org
I do apologise if I have selected the wrong mailing list here
I am running Sarge on a 450 MHz Pentium III system with 300+ Meg of memory,
hoping to build something a bit more up to date soon.
I have been struggling to print to a Windows printer using CUPS. The best I
have done is to get textual Postscript from the XP-connected Epson CX5400.
Whilst tailing the error log to try to find out what is going wrong I have
noticed the commonly reported locale problem cropping up; I don't think it
has any real bearing on my printing problem but it's good to eliminate
error messages anyway.
I get (retyped)
perl: warning: Setting locale failed
perl: warning: Please check that your locale settings:
LANGUAGE = (unset)
LC_ALL = (unset)
LANG = 'en'
are supported and installed on your system
OK, I googled, read the first fifty messages and reinstalled my locales a
couple of times
I set and exported the locale settings to hopefully sensible values guided
by pod/perllocale and then set the values in /etc/environment (IIRC)
angus@mopp:~$ locale -a
C
en_GB
en_GB.iso88591
en_GB.utf8
POSIX
angus@mopp:~$ echo $LC_ALL
en_GB
angus@mopp:~$ echo $LANGUAGE
en_GB:en_GB.iso88591:en_GB.utf8
angus@mopp:~$ echo $LANG
en_GB.iso88591
I get the same results as root (as I guess you would expect)
I still get the same error messages from perl: on reflection I have had
them when 'apt-get dist-upgrade'ing since I upgraded from Woody to Sarge
three months ago.
Why does perl find LANGUAGE and LC_ALL to be unset when as far as I can see
they are set to reasonable values?
Why does perl think LANG = 'en' when I have tried en_GB and en_GB.iso88591?
Surely it isn't choking on the underscore character?
How does perl pick up the environment variables?
Thanks for any insight you can offer
Angus Mackenzie
--
Angus A Mackenzie
Consultant Anaesthetist
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Noah Durell: "Re: emu10k1x"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: UTF8: cgi ist staerker als ich
... use locale ist sogar äusserst gefährlich und unberechenbar. ... Also
vergiss Locales und verwende den Unicode-Support von Perl. ... ist dass Du nicht 256 verschiedene
Zeichen ... Beim encode kodierst Du Zeichen entsprechend einem bestimmten Encoding
... (de.comp.lang.perl.cgi) - Language problem with knoppix
... package it gives the error message On Language Like: ... perl: warning: Setting
locale failed. ... (Debian-User) - Re: xorg 7.2 & environment variables set in login.conf
... can't utilize the LANG setting either. ... perl: warning: Setting locale
failed. ... (freebsd-current) - Re: HEADS UP: LC_CTYPE format changed
... perl: warning: Setting locale failed. ... perl: warning: Falling back to the
standard locale. ... (freebsd-current) - Re: How to set z/OS UNIX locale to en_US.UTF-8?
... focusing on the topic "locale and code page in z/OS UNIX"? ... > $ echo
$LC_ALL ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ... (bit.listserv.ibm-main)