Hello.
I'm looking for a way to set system locale to english and encoding to koi8-r. I just want output from all programs to be in english while being able to use koi8-r from command-line and anywhere. The problem is that some programs uses LANG variables to determine locale and encoding and they use it in different way.
Currently /etc/profile.d/lang.sh has following content (I've removed comments):
Code:
#!/bin/sh
export LANG=ru_RU.KOI8-R
export LC_MESSAGES=en_EN
export LC_COLLATE=C
This works mostly perfect but some programs still give me russian output. (for example, man prints messages in russian.)
I've tried setting LANG to something like "en_EN.KOI8-R", but while this works for most programs it breaks some other programs (perl starts complaining about setlocale problems, wine applications render garbage instead of russian letters, etc).
Basically I need this to make all help files and menus to be displayed in english, while commonly used encoding will be koi8-r. How can I do that?
Thanks.
P.S. I could just remove all russian help files, but there is another user on that machine and he will need those files.