LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Confusion with locales: keep english command output (http://www.linuxquestions.org/questions/linux-from-scratch-13/confusion-with-locales-keep-english-command-output-888093/)

lich000king 06-24-2011 07:48 AM

Confusion with locales: keep english command output
 
In chapter 7.8 of LFS 6.8 I would like to set the Swiss German charmap, so I use
de_CH.ISO-8859-1
(according to the explanations there).
But this also changes the text output of some commands to German (and results in some characters like not being displayed correctly).
How can I have the CH charmap while keeping the text output in English?

druuna 06-24-2011 10:59 AM

Hi,

You probably used: export LANG=de_CH.ISO-8859-1 which sets all LC_* types to de_CH.ISO-8859-1 (execute locale in a terminal to see this yourself.

To my knowledge LC_MESSAGES is used for command output. You can set this one separately to some other value (POSIX should be fine).

The /etc/profile entry mentioned in chapter 7.8 would then look like this (order is important):
Code:

export LANG=de_CH.ISO-8859-1
export LC_MESSAGES=POSIX

Hope this helps.

lich000king 06-28-2011 02:11 PM

That's it.
Thanks!

druuna 06-28-2011 02:42 PM

You're welcome :)


All times are GMT -5. The time now is 06:11 AM.