repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 4b8d4daf29508eca8f9e84fa3fe97544ed1ecdd3: path_to: revision_to:
commit 4b8d4daf29508eca8f9e84fa3fe97544ed1ecdd3 Author: Marc LehmannDate: Sat Jan 20 00:37:13 2007 +0000 *** empty log message *** diff --git a/Changes b/Changes
--- a/Changes
+++ b/Changes
@@ -38,6 +38,9 @@ TODO: fix rounding of colors when !xft (#aaaaaa => #a9a900) (do not use correct,
- fix make and make install with srcdir != builddir.
- updated bundled libptytty to fix a bug where the tty would be kept
open (see the libptytty ChangeLog for details).
+ - delay setting the IUTF8 flag to after the tty settings have been
+ set so its value does not get lost (reported and analysed by Andrei
+ Paskevich).
8.1 Thu Dec 7 22:27:25 CET 2006
- ケリスマスプレゼント - zomg!!1, it's too early!!!
diff --git a/src/init.C b/src/init.C
--- a/src/init.C
+++ b/src/init.C
@@ -1315,11 +1315,6 @@ rxvt_term::run_command (const char *const *argv)
if (!pty->get ())
rxvt_fatal ("can't initialize pseudo-tty, aborting.\n");
- pty->set_utf8_mode (enc_utf8);
-
- /* set initial window size */
- tt_winch ();
-
int er;
#ifndef NO_BACKSPACE_KEY
@@ -1332,6 +1327,11 @@ rxvt_term::run_command (const char *const *argv)
er = -1;
rxvt_get_ttymode (&tio, er);
+ pty->set_utf8_mode (enc_utf8);
+ SET_TTYMODE (STDIN_FILENO, &tio); /* init terminal attributes */
+
+ /* set initial window size */
+ tt_winch ();
#if ENABLE_FRILLS
if (rs[Rs_pty_fd])
@@ -1396,8 +1396,6 @@ rxvt_term::run_child (const char *const *argv)
{
char *login;
- SET_TTYMODE (STDIN_FILENO, &tio); /* init terminal attributes */
-
if (OPTION (Opt_console))
{ /* be virtual console, fail silently */
#ifdef TIOCCONS
-----END OF PAGE-----