Thomas Zander <[EMAIL PROTECTED]> writes:

> I am wondering how xterm should handle different shells (using screen for
> example). The perfect-world-solution would be to ask the bash its env-var
> at every printf, but that may prove to not really be feasable..

xterm can be switched from and to utf-8 mode at runtime using control
sequences.  screen could use these to switch at will, depending on
what locale the shell is running in.  Or simply use the utf-8 mode all
the time and convert everything from latin1 to utf8 for shells which
run in a iso-8859-1 locale.

> In other words; to start xterm in utf-8 when the locale is utf8 seems to only
> be half the solution, since the shell started might just start a startup script
> that sets LANG to something different..

Well, you have to take care to pick sensible places to set your LANG
variables.  It is certainly possible to shoot yourself into the foot
here :)

.xinitrc / .xsession is probably a better place than .bashrc

  Gerd

-- 
Weil die späten Diskussionen nicht mal mehr den Rotwein lohnen.
                                -- Wacholder in “Melanie”
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to