FS#3969 - problem with the prompt and UTF-8 locales
Attached to Project:
Arch Linux
Opened by Morgan LEFIEUX (Comete) - Monday, 13 February 2006, 21:47 GMT
Opened by Morgan LEFIEUX (Comete) - Monday, 13 February 2006, 21:47 GMT
|
Details
Hello,
i use fr_FR.utf8 locales and i've noticed (a long time ago... but the problem is still here) that there is a "G" near the prompt when i do a "su -". The problem seems to be in /etc/rc.sysinit: (line 227) echo 'echo -ne "\e%G"' >> /etc/profile.d/locale.sh |
This task depends upon
I have tried to reproduce this behaviour with uk_UA.utf8 but I didn't saw any problem in console and xterm.
I also use Terminal (for XFCE4) and it has problems with non-English locales.
xterm has problems with non-UTF8-locales like uk_UA.KOI8-U.
echo -ne "\e%G" switches console to UTF8 mode.
Each file in profile.d gets executed each time you logs in to console.
locale.sh is not executed when using su, but it executes when using su -, so maybe the problem is because of sending two echo -ne "\e%G" to one physical console screen. But then again I must say that there is no such problem in plain text console and xterm. I doubt that there is any substantional differences between any UTF8 locales. Have you tried to reproduce this behaviour on another terminals?
Or send it to Roman.Kyrylych@gmail.com, I'll take a look, as I was involved in polishing localization stuff in rc.sysinit
thanks :)
Anyone has the exactly the same problem as described by Morgan?
If not, then this bug can be closed.
http://bugs.archlinux.org/task/3996#comment8276
echo 'echo -ne "\e%G"' >>/etc/profile.d/locale.sh
with
echo 'if [ "$TERM" = "linux" ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh
in this new rc.sysinit
and check if UTF8 is working in xterm, rxvt, gnome,terminal, Konsole, other terminals (the more you test - the better).
If there is no problem with new rc.sysinit (from bug #3996 or from CVS) in xterm, aterm, rxvt, gnome-terminal, Konsole, then the problem is not in %G but in mrxvt. If the problem exists xterm and others terminal, then try the fix above.
does the latest rc.sysinit from testing/initscripts still causes problem?
To Mikos and Comete:
does this: http://bugs.archlinux.org/task/3969#comment8295 fixes your problems?
I have tried to use Terminal with uk_UA.utf8 locale and without %G, and UTF8 is not working for me.
echo 'if [ "$TERM" = "linux" ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh
that works ! thanks ! :)
Yepp, another localization bug fixed. :)
Added the conditional to rc.sysinit for -23