You are not logged in.

#1 2020-10-22 10:28:53

iznogoud77
Member
Registered: 2020-10-15
Posts: 2

Problem with pt_PT locale and perl

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 perl

the error goes away

if I run

 LC_ALL=pt_PT.UTF-8 perl

the error happens again

The output of

locale
LANG=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.utf8

from 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

Board footer

Powered by FluxBB