-   Linux From Scratch (
-   -   Confusion with locales: keep english command output (

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
(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


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):

export LANG=de_CH.ISO-8859-1

Hope this helps.

lich000king 06-28-2011 02:11 PM

That's it.

druuna 06-28-2011 02:42 PM

You're welcome :)

All times are GMT -5. The time now is 12:20 PM.