[wellylug] LANG environment

jumbophut jumbophut at gmail.com
Sun Apr 24 10:35:39 NZST 2005


On 4/24/05, jim wrote:
> Hello,
[snip]
> Anyway now I appear to have problems with the LANG variable or
> something. I have put all these thing into my ~/bashrc and am now
> wondering if that is the right place. Perhaps I should make it system
> wide? Just want to limit the damage when I stuff it up.

In the bash manpage, it says it looks in the following locations...

If invoked as an interactive login shell:
/etc/profile,  ~/.bash_profile,  ~/.bash_login, ~/.profile.

Otherwise, ~/.bashrc.

After trying some or all of those, what do you get as the output to:

1. set?
2. echo $LANG?

Finally, I don't know if this helps you, but I have set up my machine
to run apps with Japanese enabled only when I want it.  I have this
little script, and then I just put menu entries in KDE to run various
apps using it:

#!/bin/bash
# japinp -- run a command enabling Japanese language environment
# Usage: japinp command args
# Examples:
# 1. japinp openoffice -writer
# 2. japinp mozilla
# Notes: assumes canna server is running; requires kinput2-canna;
#        needs ja_JP locale/s.

# If kinput is not running, start it
if [ $(ps -A -o "%a" | grep '^kinput2' | wc -l) -eq 0 ];
then  eval 'kinput2&';
fi;

# Run the program
LANG=ja_JP XMODIFIERS=@im=kinput2 $@ &

#ENDS

Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')




More information about the wellylug mailing list