Submitted by valcaro on Mon, 12/10/2007 - 02:21. General Questions
Hi,
Im using SLED10 SP1, I have a problem in xterm's title bar. It displays garbage characters when it contains russian text.
In /etc/sysconfig/language I have set RC_LANG and RC_ALL to "ru_RU.KOI8-R" but still it doesn't work.
I have found a way to display it properly by specifying the MWM resource file (/root/.Xdefaults) and added
Mwm*title*fontList: *120*koi8-r
My question is, is this the right way of doing this? Or doesnt MWM automatically uses the system LANGUAGE?
hi,
when i set my xterm's title using this command:
xterm -title "some cyrillic text"
the result on in the xterm window will be "somesome russianrussian text"...
But if set it to:
xterm -title "somerussiantext"
the result is just as expected...
How do I fix this...?
RC_LANG="ru_RU.KOI8-R"
RC_LC_ALL="ru_RU.KOI8-R"
WINDOWMANAGER=mwm
Kind regards,
val
What happens when you enter this from an existing xterm session:
printf "\033]0;test привет мир\007"; sleep 5
This should say "hello world" in Russian on your xterm's titlebar for at least five seconds. Is it there twice? Is the word "test" also there twice?
I'd try playing with different language environment variables, including LANG, LANGUAGE, LC_ALL, and the RC_* versions of those. Does your titlebar work when you use en_US or en_US.UTF-8? (I'm using en_US.UTF-8 and the above test works for me.) Another test would be using a different program (like gnome-terminal or dtterm) to see if it's a problem with xterm, X11, or mwm.
Also note that xterm is not a motif application, so you'll only get so much help here.
EDIT: I merged this topic with your older similar post.
Hi Adam,
I have tried the "printf ...." in both "en_US.UTF-8" and "ru_RU.KOI8-R", they dont work if cyrillic character are present. But will work if they are in pure English characters.
Also, doing a xterm -title "cyrillic english cyrillic english" --> "cyrilliccyrillic english cyrilliccyrillic english".
Changing display manager from xdm to gdm and window manager to mwm to gnome, the errors will not occur.
BTW, how did you type those characters? are you changing the keyboard properties?
Thanks for the help.
Kind regards,
val
valcaro wrote:
Hi,
Im using SLED10 SP1, I have a problem in xterm's title bar. It displays garbage characters when it contains russian text.
In /etc/sysconfig/language I have set RC_LANG and RC_ALL to "ru_RU.KOI8-R" but still it doesn't work.
I have found a way to display it properly by specifying the MWM resource file (/root/.Xdefaults) and added
Mwm*title*fontList: *120*koi8-r
My question is, is this the right way of doing this? Or doesnt MWM automatically uses the system LANGUAGE?
Here is my ugly fix as well:
http://forums.nekochan.net/viewtopic.php?p=7304186&sid=ef1c46fabea423461...