iutf8 flag gets lost

Andrei Paskevich andrei at capet.iut-fbleau.fr
Sat Jan 20 09:33:18 CET 2007


On Sat, 20 Jan 2007 at 04:00:44 (+0100), Marc Lehmann wrote:
> Thanks a lot, can you check current cvs to see wether everything works?

No, the problem is still there.
% LC_CTYPE=en_US.UTF-8 ./rxvt -hold -e /usr/bin/stty -a
shows -iutf8 in the new window.

> We took another approach of setting termios in the main process 
> not the child and only changing the utf8 flag afterwards.

In fact, the new CVS init.C still sets the IUTF8 flag right before 
setting termios. Suffice it to change the order of two lines and
then it works:

========================================================
--- init.C.orig 2007-01-20 08:56:28.000000000 +0100
+++ init.C      2007-01-20 08:56:34.000000000 +0100
@@ -1279,8 +1279,8 @@
     er = -1;
 
   rxvt_get_ttymode (&tio, er);
-  pty->set_utf8_mode (enc_utf8);
   SET_TERMIOS (pty->tty, &tio);       /* init terminal attributes */
+  pty->set_utf8_mode (enc_utf8);
 
   /* set initial window size */
   tt_winch ();
========================================================

I install the current CVS rxvt-unicode and will inform you if any 
other problem emerges. (Also, I never had a problem with my screen
program, so I'll turn the yield hack back on for a while (g).)

Best regards,
Andrei





More information about the rxvt-unicode mailing list