You are not logged in.
Pages: 1
Hi all,
I have this issue with perl and pt_PT locale.
So if I simply run perl from the command line I get this:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_ADDRESS = "pt_PT.UTF-8",
LC_NAME = "pt_PT.UTF-8",
LC_MONETARY = "pt_PT.UTF-8",
LC_PAPER = "pt_PT.UTF-8",
LC_IDENTIFICATION = "pt_PT.UTF-8",
LC_TELEPHONE = "pt_PT.UTF-8",
LC_MESSAGES = "en_US.UTF-8",
LC_MEASUREMENT = "pt_PT.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_TIME = "pt_PT.UTF-8",
LC_COLLATE = "C",
LC_NUMERIC = "pt_PT.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").if I run
LC_ALL=en_US.UTF-8 perlthe error goes away
if I run
LC_ALL=pt_PT.UTF-8 perlthe error happens again
The output of
localeLANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=pt_PT.UTF-8
LC_TIME=pt_PT.UTF-8
LC_COLLATE=C
LC_MONETARY=pt_PT.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=pt_PT.UTF-8
LC_NAME=pt_PT.UTF-8
LC_ADDRESS=pt_PT.UTF-8
LC_TELEPHONE=pt_PT.UTF-8
LC_MEASUREMENT=pt_PT.UTF-8
LC_IDENTIFICATION=pt_PT.UTF-8
LC_ALL=The output of
locale -a C
POSIX
en_US.utf8
pt_PT.utf8from what I understood reading the wiki and some stuff on stackoverflow, LC_ALL should not be set by default.
I see two workarounds one is to set the LC_ALL to en_US.UTF-8 in my profile or the create and alias for perl which sets the LC_ALL.
But none of these are fixes for the issue and I think there is some underlying issue here. Does anyone has some insight on things I can try?
Regards
Offline
Pages: 1