Koozali.org: home of the SME Server

Perl Locale Problem

Serge Dutremble

Perl Locale Problem
« on: July 08, 2002, 06:51:01 PM »
I just installed the new SME 5.5 and got the PERL Locale warning.

Why is this?  Should this be happening at all?

I get it any time a perl script is executed...  WHich is just about anytime SME dows something with the panels or the templates!!!  Even at boot!

The message is:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

I know this is a known problem that happens when you upgrade to the new PERL package.  I had it under SME 5.1.2 when I followed the instructions on upgrading to IMP 3.0.  I would, however, had expected this NOT to occur on a newly released SME supporting IMP 3.0!

P.S.  I tried to follow the instructions posted on the internet on how to solve this but has never been able to implement it.

Any help out there for this?

Serge

serge

Re: Perl Locale Problem
« Reply #1 on: July 12, 2002, 04:15:19 AM »
Has anyone seen this problem before?

Am I the only one?

Serge.

Guck Puppy

Re: Perl Locale Problem
« Reply #2 on: July 12, 2002, 04:24:14 AM »
I can only say that I too have it on 5.1.2 - and have always had it.

Before and after update 1 - can't update to 2 (well, not with the blade) because of my contrib installs.

G

Guck Puppy

Re: Perl Locale Problem
« Reply #3 on: July 25, 2002, 02:32:26 AM »
Well, according to :

http://sources.redhat.com/ml/libc-alpha/2001-12/msg00161.html

if you set the environment variable LANG to the value POSIX the errors are not displayed.

Does this *work*? Yes.
Does this *fix* the *problem*? I don't know...

G

serge

Re: Perl Locale Problem
« Reply #4 on: August 31, 2002, 07:58:00 PM »
If this is happening on SME, why is there not a fix if it this simple (and NO, it does not work).

guck puppy

Re: Perl Locale Problem
« Reply #5 on: September 01, 2002, 12:36:24 AM »
- from ~/.bash_profile

export LANG=POSIX

- content of ~/arse.pl
#!/usr/bin/perl
print "arse!\n";
exit;

- running perl arse.pl
[me@mine me]$ perl arse.pl
arse!
[me@mine me]$

SME v5.12

serge

Re: Perl Locale Problem
« Reply #6 on: September 03, 2002, 04:01:06 AM »
Thanks!  This worked.

I did a check on the server for all .bash_rofile files and found a few.

I suspect that if you change the ones contained in skel and home, as well as all existing users, the system should fix it for future users.

I am surprised why this has not made it into a fix provided by Mitel!

Serge.

Charlie Brady

Re: Perl Locale Problem
« Reply #7 on: September 03, 2002, 04:40:22 AM »
serge wrote:

> I suspect that if you change the ones contained in skel and
> home, as well as all existing users, the system should fix it
> for future users.

Have you checked /etc/sysconfig/i18n? LANG should be set there.

> I am surprised why this has not made it into a fix provided
> by Mitel!

Two simple reasons:

- if it is not affecting our paying customers, and if it has not been reported to bugs@e-smith.com (*), then it is not on our radar to fix.

- it doesn't seem to be affecting us or our software. The manager is pretty much all perl code, and it runs fine for us. Perhaps it's something specific about your installation or your language settings.

(*)Even better than a bug report is a bug report with dignosis and a well tested fix :-)

Regards

Charlie