[Adduser-devel] Bug#178482: with UTF-8 locales,
recodes non-ascii chars in user messages TWICE
Marc Haber
mh+debian-packages at zugschlus.de
Sat Oct 8 17:27:49 UTC 2005
user adduser at packages.debian.org
usertag #178482 feedback-needed
tags #178482 moreinfo
thanks
On Sun, Jan 26, 2003 at 04:31:53PM +0100, Eduard Bloch wrote:
> F????ge Benutzer boehmann in Gruppe uucp hinzu...
> Fertig.
>
> It seems that the string is already in UTF-8, and then somewhere
> interpreted as Latin1 and recoded again and we see four bytes.
[1/501]mh at lefler[chroot sid-adduser]:~$ export LANG=de_DE.UTF-8
[2/502]mh at lefler[chroot sid-adduser]:~$ export LC_CTYPE=de_DE.UTF-8
[5/505]mh at lefler[chroot sid-adduser]:~$ sudo adduser mh uucp > file.bla
[6/506]mh at lefler[chroot sid-adduser]:~$ cat file.bla
Füge Benutzer mh in Gruppe uucp hinzu...
Fertig.
[7/507]mh at lefler[chroot sid-adduser]:~$ logout
[16/515]mh at lefler:~/chroot$ cd sid-adduser
[17/516]mh at lefler:~/chroot/sid-adduser/home/mh$ ls
Makefile adduser/ devel/ file.bla
[18/517]mh at lefler:~/chroot/sid-adduser/home/mh$ hexadump file.bla
00000000 46 c3 bc 67 65 20 42 65 6e 75 74 7a 65 72 20 6d Füge Benutzer m
00000010 68 20 69 6e 20 47 72 75 70 70 65 20 75 75 63 70 h in Gruppe uucp
00000020 20 68 69 6e 7a 75 2e 2e 2e 0a 46 65 72 74 69 67 hinzu....Fertig
00000030 2e 0a ..
I do not have a clue about UTF-8, but this looks like only two bytes
were printed. Can you please check if this bug still applies after two
and a half years?
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
More information about the Adduser-devel
mailing list