View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5929
|
Posted: Sat Feb 10, 2018 12:21 pm Post subject: weird locale bug [solved] |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Feb 10, 2018 5:44 pm Post subject: |
|
|
and what says? |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5929
|
Posted: Sat Feb 10, 2018 6:49 pm Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Feb 10, 2018 7:36 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5929
|
Posted: Sat Feb 10, 2018 8:56 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5929
|
Posted: Sat Feb 17, 2018 5:35 pm Post subject: |
|
|
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 |
|
|
|