Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
weird locale bug [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sat Feb 10, 2018 12:21 pm    Post subject: weird locale bug [solved] Reply with quote

Greetings,

I've create a fresh home directory for my user and for some reason my msgs in gtk or bash are in spanish rather than english, see:
Code:
dagg@NCC-5001-D ~/workspace/router/openwrt $ export LC_ALL=en_US.UTF-8
dagg@NCC-5001-D ~/workspace/router/openwrt $ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
dagg@NCC-5001-D ~/workspace/router/openwrt $ adasda
bash: adasda: no se encontró la orden


any ideas how to solve it?

Thanks,

Dagg.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Sat Feb 17, 2018 5:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Feb 10, 2018 5:44 pm    Post subject: Reply with quote

and what
Code:
locale -a
says?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sat Feb 10, 2018 6:49 pm    Post subject: Reply with quote

Code:
dagg@NCC-5001-D ~/workspace/router/openwrt $ locale -a
C
en_GB.utf8
en_US
en_US.iso88591
en_US.utf8
es_AR
es_AR.iso88591
es_AR.utf8
POSIX

_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Feb 10, 2018 7:36 pm    Post subject: Reply with quote

that's what i was thinking, you don't have any real locale named en_US.UTF-8
if you define a locale has:
aname UTF-8 : you will endup with the locale "aname" and it should be use as "aname".
en_US.UTF-8 UTF-8 : you will use "en_US.UTF-8"
en_US UTF-8 : you will use "en_US"

in your locale list, no "en_US.UTF-8" exists, try LC_ALL="en_US" (assuming you have set it with "en_US UTF-8")
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sat Feb 10, 2018 8:56 pm    Post subject: Reply with quote

tried that already, same behavior, see:
Code:
dagg@NCC-5001-D ~/workspace/router $ export LC_ALL="en_US"
dagg@NCC-5001-D ~/workspace/router $ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US
dagg@NCC-5001-D ~/workspace/router $ sfsdf
bash: sfsdf: no se encontr� la orden

_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sat Feb 17, 2018 5:35 pm    Post subject: Reply with quote

after removing/changing locales and apparently some luck, issue is solved.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum