[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnu-libiconv] Incorrect character translation from cp437
From: |
Phillip Susi |
Subject: |
[bug-gnu-libiconv] Incorrect character translation from cp437 |
Date: |
Mon, 26 May 2014 14:40:33 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
This classic string from a win95 created shortcut to the 3 1/2 inch floppy
drive is translated from cp437 incorrectly by iconv:
address@hidden:~# hd foo
00000000 bd 20 69 6e 63 68 20 66 6c 6f 70 70 79 0a |. inch floppy.|
address@hidden:~# iconv -f 437 foo -t UTF-8 | hd
00000000 e2 95 9c 20 69 6e 63 68 20 66 6c 6f 70 70 79 0a |... inch floppy.|
In cp 437, 0xBD is supposed to be a 1/2 character. iconv seems to have
translated it to U+255C instead of U+00BD.
Also I tried running iconv -f utf-8 -t 437 and typing U+00BD, and iconv
translated it to 0xAB instead of 0xBD.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBCgAGBQJTg4qhAAoJEI5FoCIzSKrwv30H/2ubBixPtLOllHqj7p5vlp0o
WHmfcpni1qudar6dGt5na4FigEj/mcUnMo8KOUmib5ojFWyEsxdO3aV1xjadU6S1
dbfUcVrlfuxSuBx8JpnQ3q9ianEOTH06/Qgud0TcvQGqrM22aAErI98+FraXbpMe
UNpBBdAefayv+LsG9MKc8P784BpfgT3ExFZVEuTt8HmbjIaW+Xo/UK1NjJ8gt0bS
IsGG2gSGX9FOrWdzO+pVDRRdWCVyFFUalK8o2TmMcktT9OwfjxLUMAVLYuEpxvVs
zLdPQH+S2tNjOpllZtlsmgvcfOpy0iyAJS5W6+idT8ylAY6Lx8GMJVKr1nv4cmc=
=Q9S0
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-gnu-libiconv] Incorrect character translation from cp437,
Phillip Susi <=