Bug#221290: [Pkg-shadow-devel] Bug#221290: Bug #221290 still here: screen garbled after entering high-ascii characters at login prompt

Eugeniy Meshcheryakov eugen at univ.kiev.ua
Tue Sep 27 16:58:27 UTC 2005


27 вересня 2005 о 18:36 +0200 Tomasz Kłoczko написав(-ла):
> Eugeniy this is incorrect way .. better will be use IUTF8 atribute 
I know that it is incorrect, i sent this patch only as demonstration of
the problem.

> from tty level description. Example from my system:
> 
> $ stty -a | grep utf
> -iuclc ixany imaxbel -iutf8
> 
Not in Debian.

$ stty -a | grep utf8
$

> Why this is better ? Because termios is more generic and using 
> nl_langinfo() requires LOCALE database in system which does not exist 
> usualy in embeded systems (because it is very huge and full i18n support 
> isn't neccessary on this kind instalations).
> Also reading current LOCALE settings it not the same as reading terminal
> capabilities (IIRC setlocale() also changes tty atributes .. if not this 
> is next thing for fix :).
no, setlocale do not change tty attributes and it must not.

> 
> By default linux console device have UTF-8 support enabled. Also current 
Wrong, it does not.

> glibc provides IUTF8 bit mask for reading this atribute (look at 
> <bits/termios.h>) .. so all around is ready. Only IUTF8 atribute must be 
Yes it provides it but it is not documented.
> correctly readed and used .. nothing more. Of cource also it will be good 
As I wrote it does not set by default. Be it set we'll haven't this
problem.
> if stty comand will correctly report IUTF8 :) (I don't know is attached 
> patch which bases on SuSE patch is used in Debian coreutils).
> 

Anyway this is more general problem but not shadow bug (it is about UTF8
support, not about umlauts), so probably nothing should be done in
shadow. But some program should set that flag *before* login run and
*all* terminal emulators should set this flag when run in UTF-8 locale
:( 

/me hates Linux console system
-- 
Eugeniy Meshcheryakov

Kyiv National Taras Shevchenko University
Information and Computing Centre
http://icc.univ.kiev.ua
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20050927/e28d1612/attachment.pgp


More information about the Pkg-shadow-devel mailing list