Bug#345639: Re: Bug#345639: adduser: [INTL:de] prompt does not match expected response
tags #345639 help thanks On Sat, Jan 07, 2006 at 02:52:43PM +0100, Claudio Nieder wrote: Is this a stupid user (that would be me) problem? Is it a debian-installer problem as it sets an environment variable which is is only partially supported? Is it a locales problem, as it does not care about LANGUAGE? Is it an adduser problem as it uses different methods to figure out the language to use? I don't know. I am tagging this bug help, and am trying to get somebody knowledgeable to look into this. Comments should appear in this bug report shortly. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#345639: adduser: [INTL:de] prompt does not match expected response
Hi, hydra:~# locale | grep LANG [EMAIL PROTECTED] I see your settings differ from mine: $ locale | grep LANG LANG=en_GB.UTF-8 $ env | grep -e LC -e LANG LANG=en_GB.UTF-8 LANGUAGE=de_CH:de_DE:de:en_GB:en It seems like adduser soemtimes uses LANGUAGE and sometimes LANG to determine the language. # LANG=de_CH.UTF-8 adduser test Lege Benutzer test an... Adding new group `test' (1010). Adding new user `test' (1010) with group `test'. Homeverzeichnis /home/test existiert bereits. Kopiere keine Dateien aus /etc/skel Enter new UNIX password: Retype new UNIX password: passwd: Kennwort erfolgreich geändert Ändere Benutzerinformationen für test Geben Sie einen neuen Wert an oder ENTER für den Standardwert Name []: abc Raum []: Telefon geschäftlich []: Telefon privat []: Sonstiges []: Sind die Informationen korrekt? [j/N] j For how I ended up with my combination of LANUAGE and LANG I can only guess: In /var/cache/debconf/config.dat I see Name: debian-installer/language Template: debian-installer/language Value: de_CH:de_DE:de:en_GB:en Owners: d-i, unknown Thus the LANGUAGE setting came probably from when I first installed debian. The LANG in /etc/environment - I just verified by doing a dpkg-reconfigure locales - gets set when locales is configured. So I must have at some time decided to have en_GB as default locale and done it through a dpkg-reconfigure locales, without remembering that there is more to change. Is this a stupid user (that would be me) problem? Is it a debian-installer problem as it sets an environment variable which is is only partially supported? Is it a locales problem, as it does not care about LANGUAGE? Is it an adduser problem as it uses different methods to figure out the language to use? Please advise me, if I should open bug reports against debian-installer or locales. If you think it is the stupid user problem, please tell me which section of which guide/how-to/man-page I missed to read. I never mind being called stupid if one helps me learn and improve! claudio -- Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743 yahoo messenger: claudionieder aim: claudionieder icq:42315212 mailto:[EMAIL PROTECTED]http://www.claudio.ch pgpb2ZFkPMC8L.pgp Description: PGP signature
Bug#345639: adduser: [INTL:de] prompt does not match expected response
On Tue, Jan 03, 2006 at 01:26:02AM +0100, Claudio Nieder wrote: It's not the case which bothers me, but that it expects a Y or y while asking: Sind die Informationen korrekt? [j/N] The prompt asks for a j as positive answer while actually only a y as answer is accepted. Hm, the code on the respective part looks like this: my $yesexpr = langinfo(YESEXPR()); for (;;) { systemcall('/usr/bin/chfn', $new_name); # Translators: [y/N] has to be replaced by values defined in your # locale. You can see by running locale yesexpr which regular # expression will be checked to find positive answer. print (gtx(Is the information correct? [y/N] )); chop ($answer=STDIN); last if ($answer =~ m/$yesexpr/o); } It seems correct to me. A typescript (latest adduser from unstable, version 3.80): hydra:~# adduser foo Lege Benutzer foo an... Adding new group `foo' (1002). Adding new user `foo' (1002) with group `foo'. Homeverzeichnis /home/foo existiert bereits. Kopiere keine Dateien aus /etc/skel adduser: Warning: that home directory does not belong to the user you are currently creating Enter new UNIX password: Retype new UNIX password: passwd: Kennwort erfolgreich geändert Ändere Benutzerinformationen für foo Geben Sie einen neuen Wert an oder ENTER für den Standardwert Name []: Raum []: Telefon geschäftlich []: Telefon privat []: Sonstiges []: Sind die Informationen korrekt? [j/N] j hydra:~# id foo uid=1002(foo) gid=1002(foo) Gruppen=1002(foo) hydra:~# locale | grep LANG [EMAIL PROTECTED] hydra:~# I cannot reproduce it :-| Joerg -- Was denen einen ihr Watergate, ist den anderen ihr Firstgate. - Thomas Bliessner, [EMAIL PROTECTED] signature.asc Description: Digital signature
Bug#345639: adduser: [INTL:de] prompt does not match expected response
Package: adduser Version: 3.80 Severity: normal In the german translation, the prompt appearing after the users information was added asking If the information are correct [y/N] is translated to the german letters [j/N] for german Ja=Yes and Nein=No. Yet the letter j or J is not accepted as answer. One must enter a y, otherwise it is assumed the user is saying that the information is not correct and should be re-entered: Geben Sie einen neuen Wert an oder ENTER für den Standardwert Name []: Jetty Install Raum []: Telefon geschäftlich []: Telefon privat []: Sonstiges []: Sind die Informationen korrekt? [j/N] j Ändere Benutzerinformationen für i-jetty Geben Sie einen neuen Wert an oder ENTER für den Standardwert Name [Jetty Install]: Raum []: Telefon geschäftlich []: Telefon privat []: Sonstiges []: Sind die Informationen korrekt? [j/N] J Ändere Benutzerinformationen für i-jetty Geben Sie einen neuen Wert an oder ENTER für den Standardwert Name [Jetty Install]: Raum []: Telefon geschäftlich []: Telefon privat []: Sonstiges []: Sind die Informationen korrekt? [j/N] y # -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-2-686 Locale: LANGUAGE=de_CH:de_DE:de:en_GB:en LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages adduser depends on: ii debconf [debconf-2.0] 1.4.66 Debian configuration management sy ii passwd1:4.0.13-7 change and administer password and ii perl-base 5.8.7-10 The Pathologically Eclectic Rubbis adduser recommends no packages. -- debconf information: * adduser/homedir-permission: true -- Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743 yahoo messenger: claudionieder aim: claudionieder icq:42315212 mailto:[EMAIL PROTECTED]http://www.claudio.ch pgpp7yJ67V0kh.pgp Description: PGP signature
Bug#345639: adduser: [INTL:de] prompt does not match expected response
On Mon, Jan 02, 2006 at 02:27:47PM +0100, Claudio Nieder wrote: Package: adduser Version: 3.80 Severity: normal In the german translation, the prompt appearing after the users information was added asking If the information are correct [y/N] is translated to the german letters [j/N] for german Ja=Yes and Nein=No. Yet the letter j or J is not accepted as answer. One must enter a y, otherwise it is assumed the user is saying that the information is not correct and should be re-entered: So you're proposing that the input should be handled case-insensitiv? Jörg -- Was denen einen ihr Watergate, ist den anderen ihr Firstgate. - Thomas Bliessner, [EMAIL PROTECTED] signature.asc Description: Digital signature
Bug#345639: adduser: [INTL:de] prompt does not match expected response
Hi, Yet the letter j or J is not accepted as answer. One must enter a y, otherwise it is assumed the user is saying that the information is not correct and should be re-entered: So you're proposing that the input should be handled case-insensitiv? It's not the case which bothers me, but that it expects a Y or y while asking: Sind die Informationen korrekt? [j/N] The prompt asks for a j as positive answer while actually only a y as answer is accepted. claudio -- Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743 yahoo messenger: claudionieder aim: claudionieder icq:42315212 mailto:[EMAIL PROTECTED]http://www.claudio.ch pgpijHf5saCea.pgp Description: PGP signature