Hi! After a small, fast and simple check I conclude that the issue with setting cs7 on terminal after entering non-ascii letters into "login:" prompt is really a probem with /sbin/getty (util-linux pkg).
On Wed, Sep 28, 2005 at 07:49:14PM +0300, Alexander Gattin wrote: > > When I run stty -a in a "clean" shell vs. in a "broken" shell (in the > > sequence above, before running reset) I get the following differences: > > claen: broken: > > ====== ======= > > -parenb -parodd cs8 parenb -parodd cs7 > > -inpck -istrip inpck istrip > > the same, but sometimes only cs8 vs. cs7 difference is > noticed... :-/ > > > If you need more/other info, please tell me which. > > Thanks for your patience, anyway. Also, I strongly > suspect that the bug is in _getty_ package, because > IIRC "login:" prompt is printed/processed by getty, and > "passwd:" one is provided by login later. Steps that I took in order to check the issue: 1) created an executable script /root/stty.sh: > #!/bin/sh > stty -a 2) added new getty instance on tty8 to /etc/inittab: > 4:23:respawn:/sbin/getty 38400 tty4 > 5:23:respawn:/sbin/getty 38400 tty5 > 6:23:respawn:/sbin/getty 38400 tty6 > +8:23:respawn:/sbin/getty -l /root/stty.sh 38400 tty8 3) signalled init: > cherokee:~# telinit q After this I switch to tty8 and can play entering different login names onto "login:" prompt and seeing what `stty -a` tells me, immediately. Helge, I suggest you to repeat the same trick and see that getty indeed messes with tty settings. ;) > And I do not recall any messing with stty there... I mean I don't remember anything of that kind in login, and unsurprisingly `man getty` says the next: > getty has several non-standard features that are useful for hard-wired > and for dial-in lines: > > o Adapts the tty settings to parity bits and to erase, kill, end- > of-line and uppercase characters when it reads a login name. > The program can handle 7-bit characters with even, odd, none or > space parity, and 8-bit characters with no parity. P.S. so if nobody objects, I'll reassign the bug to util-linux soon. Eugene: there were talks about "utf8" and "my" issues, sence of which I completely missed... Do you agree that this particular bug is about getty/cs7? -- WBR, xrgtn -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]