Loosing locale settings
Hi, I do not know if this was happing before yet recently I discovered that sometimes I am loosing my locale settings when I have more then 2 Xterms opened. The weird thing is it does not happen always SuSE 8.1 Kernel k_deflt-2.4.19-74 Windowmaker (WindowMaker-0.80.2-1 from Mike Fabian's directory) I have the locale settings in $HOME/.profile as export LANG=tr_TR.UTF-8 export LC_MESSAGES=en_US export LC_TIME=POSIX export LC_COLLATE=tr_TR.UTF-8 I am using "utf8xterm" which comes with shtools-2002.01.30-117. So When I have the Xterm for the first time the locale is toganm@earth:~> locale LANG=tr_TR.UTF-8 LC_CTYPE="tr_TR.UTF-8" LC_NUMERIC="tr_TR.UTF-8" LC_TIME=POSIX LC_COLLATE=tr_TR.UTF-8 LC_MONETARY="tr_TR.UTF-8" LC_MESSAGES=en_US LC_PAPER="tr_TR.UTF-8" LC_NAME="tr_TR.UTF-8" LC_ADDRESS="tr_TR.UTF-8" LC_TELEPHONE="tr_TR.UTF-8" LC_MEASUREMENT="tr_TR.UTF-8" LC_IDENTIFICATION="tr_TR.UTF-8" LC_ALL= When I encounter the problem of loosing locales the output is like this LANG=tr_TR LC_CTYPE="tr_TR" LC_NUMERIC="tr_TR" LC_TIME=POSIX LC_COLLATE=tr_TR.UTF-8 LC_MONETARY="tr_TR" LC_MESSAGES=en_US LC_PAPER="tr_TR" LC_NAME="tr_TR" LC_ADDRESS="tr_TR" LC_TELEPHONE="tr_TR" LC_MEASUREMENT="tr_TR" LC_IDENTIFICATION="tr_TR" LC_ALL= I have no idea whatsoever how come the locales change does anybody have ? -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
* Togan Muftuoglu; <toganm@dinamizm.com> on 22 Jan, 2003 wrote:
Hi,
I do not know if this was happing before yet recently I discovered that sometimes I am loosing my locale settings when I have more then 2 Xterms opened. The weird thing is it does not happen always
SuSE 8.1 Kernel k_deflt-2.4.19-74 Windowmaker (WindowMaker-0.80.2-1 from Mike Fabian's directory)
I think this is the problem package I tried with KDE and I had xterm's everywhere and the locale settings stay the same. Mike can you reproduce the problem -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
Togan Muftuoglu <toganm@dinamizm.com> さんは書きました:
* Togan Muftuoglu; <toganm@dinamizm.com> on 22 Jan, 2003 wrote:
I do not know if this was happing before yet recently I discovered that sometimes I am loosing my locale settings when I have more then 2 Xterms opened. The weird thing is it does not happen always
SuSE 8.1 Kernel k_deflt-2.4.19-74 Windowmaker (WindowMaker-0.80.2-1 from Mike Fabian's directory)
I think this is the problem package I tried with KDE and I had xterm's everywhere and the locale settings stay the same. Mike can you reproduce the problem
No. How do you start your xterms in Windowmaker? Some menu entry? Does it also happen when you start xterms via the 'run command' menu or from other xterms? What happens if you start a new login shell withing an xterm: bash -login or tcsh -l in case you are using tcsh. If you grep recursively through /etc/* and through the dot-files in your home directory, can you find the string "tr_TR" (without .UTF-8) somewhere? grep -r tr_TR /etc/* grep tr_TR ~/.* If yes, where is it? It must be somewhere because according to your description, some program sets "LANG=tr_TR". -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
* Mike FABIAN; <mfabian@suse.de> on 23 Jan, 2003 wrote:
How do you start your xterms in Windowmaker? Some menu entry?
yes this is what I have in $HOME/GNUstep/Defaults/WMRootMenu, so basically I am calling utf8xterm ( Applications, (Info, ("Info Panel", INFO_PANEL), (Legal, LEGAL_PANEL)), (Run..., EXEC, "%a(Run,Type command to run:)"), (Mutt, SHORTCUT, XF86Mail, EXEC, "utf8xterm -e mutt"), (XTerm, EXEC, utf8xterm), (Opera, SHORTCUT, XF86HomePage, EXEC, opera),
Does it also happen when you start xterms via the 'run command' menu or from other xterms?
when I start via run command it also happens (does not make a difference if I just type xterm or utf8xterm here is what I have LANG=tr_TR <!-------- This is set as tr_TR.UTF-8 in $HOME/.profile LC_CTYPE="tr_TR" LC_NUMERIC="tr_TR" LC_TIME=POSIX <-------------- This is set in $HOME/.profile LC_COLLATE=tr_TR.UTF-8 <--------- This is set in $HOME/.profile LC_MONETARY="tr_TR" LC_MESSAGES=en_US <------------- This is set in $HOME/.profile LC_PAPER="tr_TR" LC_NAME="tr_TR" LC_ADDRESS="tr_TR" LC_TELEPHONE="tr_TR" LC_MEASUREMENT="tr_TR" LC_IDENTIFICATION="tr_TR" LC_ALL=
What happens if you start a new login shell withing an xterm:
bash -login
locale settings are tr_TR.UTF-8 as seen below toganm@earth:~> bash -login toganm@earth:~> locale LANG=tr_TR.UTF-8 LC_CTYPE="tr_TR.UTF-8" LC_NUMERIC="tr_TR.UTF-8" LC_TIME=POSIX LC_COLLATE=tr_TR.UTF-8 LC_MONETARY="tr_TR.UTF-8" LC_MESSAGES=en_US LC_PAPER="tr_TR.UTF-8" LC_NAME="tr_TR.UTF-8" LC_ADDRESS="tr_TR.UTF-8" LC_TELEPHONE="tr_TR.UTF-8" LC_MEASUREMENT="tr_TR.UTF-8" LC_IDENTIFICATION="tr_TR.UTF-8" LC_ALL=
If you grep recursively through /etc/* and through the dot-files in your home directory, can you find the string "tr_TR" (without .UTF-8) somewhere?
grep -r tr_TR /etc/*
No :-(
grep tr_TR ~/.*
no :-( All I have is the one with UTF-8 toganm@earth:~> grep tr_TR ~/.* /home/toganm/.profile:export LANG=tr_TR.UTF-8 /home/toganm/.profile:export LC_COLLATE=tr_TR.UTF-8
If yes, where is it?
It must be somewhere because according to your description, some program sets "LANG=tr_TR".
That is what I thought but I have been unable to find anything. The worst part of the story is it all starts correctly, I have mutt running via *utf8xterm* which has the correct locale then I can have a _xterm_ again via *utf8xterm* again with correct locales and then the next one goes with the tr_TR. The box is starting with runlevel 3 and in the console enviroment locale is correct I start with startx and the above happens. Just to test it I tried with KDE and no matter how many xterms (again via utf8xterm) I have or consoles I have opened the locales are correct with UTF-8. It is completely weird -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
* Mike FABIAN; <mfabian@suse.de> on 23 Jan, 2003 wrote:
Togan Muftuoglu <toganm@dinamizm.com> さんは書きました:
* Togan Muftuoglu; <toganm@dinamizm.com> on 22 Jan, 2003 wrote:
I do not know if this was happing before yet recently I discovered that sometimes I am loosing my locale settings when I have more then 2 Xterms opened. The weird thing is it does not happen always
SuSE 8.1 Kernel k_deflt-2.4.19-74 Windowmaker (WindowMaker-0.80.2-1 from Mike Fabian's directory)
I think this is the problem package I tried with KDE and I had xterm's everywhere and the locale settings stay the same. Mike can you reproduce the problem
No.
Ok I have reverted back to the latest one provided via YOU toganm@earth:~> rpm -q WindowMaker WindowMaker-0.80.1-59 so far I have 12 Xterm opened via utf8xterm ( either via menu entry or from the _Run_ and guess what they all have the correct locale. toganm@earth:~> locale LANG=tr_TR.UTF-8 LC_CTYPE="tr_TR.UTF-8" LC_NUMERIC="tr_TR.UTF-8" LC_TIME=POSIX LC_COLLATE=tr_TR.UTF-8 LC_MONETARY="tr_TR.UTF-8" LC_MESSAGES=en_US LC_PAPER="tr_TR.UTF-8" LC_NAME="tr_TR.UTF-8" LC_ADDRESS="tr_TR.UTF-8" LC_TELEPHONE="tr_TR.UTF-8" LC_MEASUREMENT="tr_TR.UTF-8" LC_IDENTIFICATION="tr_TR.UTF-8" LC_ALL= So I am still on the point that something is weird with WindowMaker-0.80.2-1.i586.rpm -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
Togan Muftuoglu <toganm@dinamizm.com> さんは書きました:
I do not know if this was happing before yet recently I discovered that sometimes I am loosing my locale settings when I have more then 2 Xterms opened. The weird thing is it does not happen always
SuSE 8.1 Kernel k_deflt-2.4.19-74 Windowmaker (WindowMaker-0.80.2-1 from Mike Fabian's directory)
I have the locale settings in $HOME/.profile as
export LANG=tr_TR.UTF-8 export LC_MESSAGES=en_US export LC_TIME=POSIX export LC_COLLATE=tr_TR.UTF-8
I am using "utf8xterm" which comes with shtools-2002.01.30-117. So When I have the Xterm for the first time the locale is toganm@earth:~> locale LANG=tr_TR.UTF-8 LC_CTYPE="tr_TR.UTF-8" LC_NUMERIC="tr_TR.UTF-8" LC_TIME=POSIX LC_COLLATE=tr_TR.UTF-8 LC_MONETARY="tr_TR.UTF-8" LC_MESSAGES=en_US LC_PAPER="tr_TR.UTF-8" LC_NAME="tr_TR.UTF-8" LC_ADDRESS="tr_TR.UTF-8" LC_TELEPHONE="tr_TR.UTF-8" LC_MEASUREMENT="tr_TR.UTF-8" LC_IDENTIFICATION="tr_TR.UTF-8" LC_ALL=
When I encounter the problem of loosing locales the output is like this
LANG=tr_TR LC_CTYPE="tr_TR" LC_NUMERIC="tr_TR" LC_TIME=POSIX LC_COLLATE=tr_TR.UTF-8 LC_MONETARY="tr_TR" LC_MESSAGES=en_US LC_PAPER="tr_TR" LC_NAME="tr_TR" LC_ADDRESS="tr_TR" LC_TELEPHONE="tr_TR" LC_MEASUREMENT="tr_TR" LC_IDENTIFICATION="tr_TR" LC_ALL=
I have no idea whatsoever how come the locales change does anybody have ?
This should be fixed in the WindowMaker packages distributed with SuSE Linux 8.2. Togan was so kine to file a bug report in the SuSE bugzilla and Vladimir Nadvornik fixed the problem. Updated WindowMaker packages for SuSE 8.1 which should not have this bug are here: ftp://ftp.suse.com/pub/people/mfabian/8.1-i586/WindowMaker-0.80.2-63.i586.rpm ftp://ftp.suse.com/pub/people/mfabian/8.1-i586/WindowMaker-devel-0.80.2-63.i586.rpm ftp://ftp.suse.com/pub/people/mfabian/8.1-src/WindowMaker-0.80.2-63.src.rpm -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Mike FABIAN
-
Togan Muftuoglu