2006-08-04 10:12:44

by Adam Tlałka

[permalink] [raw]
Subject: [PATCH]console utf-8 mode fixes

Description: patch for drivers/char/vt.c

Fixed utf-8 mode so alternate charset modes always work according
to control sequences interpreted in do_con_trol function
preserving backward US-ASCII and VT100 semigraphics compatibility.

Malformed utf-8 sequences are represented as sequences of replacement
glyphs,original codes or '?' as a last resort.

unicode-xterm, gnome-terminal, kconsole and other terminal emulators
in utf-8 mode respect acsc, enacs, rmacs sequences. Also I found that
some important system programs (from Debian distro) uses acsc in utf-8
mode - dselect, aptitude, w3m for example.

Signed-off-by: Adam Tla/lka <[email protected]>


Regards
--
Adam Tla?ka mailto:[email protected] ^v^ ^v^ ^v^
System & Network Administration Group - - - ~~~~~~
Computer Center, Gda?sk University of Technology, Poland
PGP public key: finger [email protected]


Attachments:
vt.c.patch (4.40 kB)

2006-08-04 10:49:52

by Alan

[permalink] [raw]
Subject: Re: [PATCH]console utf-8 mode fixes

Ar Gwe, 2006-08-04 am 12:15 +0200, ysgrifennodd Adam Tlałka:
> Description: patch for drivers/char/vt.c
>
> Fixed utf-8 mode so alternate charset modes always work according
> to control sequences interpreted in do_con_trol function
> preserving backward US-ASCII and VT100 semigraphics compatibility.
>
> Malformed utf-8 sequences are represented as sequences of replacement
> glyphs,original codes or '?' as a last resort.
>
> unicode-xterm, gnome-terminal, kconsole and other terminal emulators
> in utf-8 mode respect acsc, enacs, rmacs sequences. Also I found that
> some important system programs (from Debian distro) uses acsc in utf-8
> mode - dselect, aptitude, w3m for example.
>
> Signed-off-by: Adam Tla/lka <[email protected]>

Testing this in -mm would be good.

Acked-by: Alan Cox <[email protected]>