Package: mingetty
Version: 1.07-1
Severity: normal

[Bug submitter would prefer not to have his email address published.]

Consoles that have been set into UTF-8 mode are set back into
single-byte mode by mingetty when it runs.  You can reproduce it easily:
1/ in a virtual console, run unicode_start as root;
2/ in the same console, run vt-is-UTF8.  It will respond that the
  console is in UTF-8 mode;
3/ log out of the console and log back in again;
4/ run vt-is-UTF8.  It will respond that the console is in single-byte
  mode.

The reason for this is that the escape sequence that mingetty uses to
clear the screen has the effect of totally resetting the console.  I
have appended a patch that replaces the offending escape sequence with
one that blanks the display, then repositions the cursor in the top
left.  With this patch, mingetty leaves the console's UTF-8 setting
alone when it clears the screen.

Best regards,

-Stephen

-- 

--- mingetty-1.07.orig/mingetty.c       2006-08-05 17:04:20.026156488 +0100
+++ mingetty-1.07/mingetty.c    2006-08-05 17:05:20.640195855 +0100
@@ -207,7 +207,7 @@
        /* Write a reset string to the terminal. This is very linux-specific
           and should be checked for other systems. */
        if (noclear == 0)
-               write (0, "\033c", 2);
+               write (0, "\033[2J\033[H", 7);

        sigaction (SIGHUP, &sa_old, NULL);
}

-- 
Paul Martin <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to