This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/497] New: iconv -t iso-2022-jp returns diffrent result for 0x5c.
- From: "oku dot ns at dream dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Nov 2004 17:07:56 -0000
- Subject: [Bug libc/497] New: iconv -t iso-2022-jp returns diffrent result for 0x5c.
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
For example,
$ printf '\343\200\200\134' |\
> iconv -f utf-8 -t iso-2022-jp |\
> od -cAn
033 $ B ! ! ! @ 033 ( B
"\343\200\200" in utf-8 is CJK space and converted "! !",
"\134" in utf-8 is backslash, but converted to "! @",
that means *wide-width* backslash.
$ printf '\134' |\
> iconv -f utf-8 -t iso-2022-jp |\
> od -cAn
\
This one correctly shows iso-8859 backslash.
I consider that the former one should show as follows;
033 $ B ! ! 033 ( B \
I wrote quick fix for this problem, as follows;
begin 644 glibc23-iso2022jp.patch.gz
M'XL(`*0(B4$``ZV27V_:,!3%G^FG.$]5TN!@.R$0.B2Z/:Q;)2;MC[:'2I8Q
M!DRS)(J=P=3NNR^!M@):[6GW(;[Q\?G=Y%X30K#,S$P1'D9AU#.JR'_-I9,]
M8PO"*>=D78:JPRGEA":$IZ#)B$4CQD+Z%`AH2NE9$`2'K##7FW_Q8L(8H3$H
M&_%TU(_#)$KBAA/Q1]YD`M)/^]T!@G9A$2:3,^SC3^<I]N^W>T%G5K\J`/<O
M'*1C%O`\JQW&8WS\\.4'Y70H6#H8BG;SX0$OM6'4:OXS)-A!U`IOQJ#;P<(_
M*1(T6>\";[62M=6HE8V%*\3:V&U+]'S86BEM%W66_4;;+5TY>^QODVU?P6M[
M.!SV4\(PD^K.9M*N?+CBM.#.P-GM-J;P-F:N2?-PJP-3]Q7+1N-G;1WLG2FQ
MTI7&HJ@@RU)6.G?-UTFKC$&FG=-5"%STCA&;RC1*CC&$^#:]F7[Z/A6,)G$B
MWEU??;X\KMA."O^A_]AEY^?PA)C5)G,F%WI;:N7@.;ELW5^OWHN\R'47S#^\
M%YU.4^'@3";S92V76JRE[Q_=H*.?.QUA._TNBMJ5KMJM.I^#/&[XE\^4OTD;
&1$EK`P``
`
end
./iconvdata/iso-2022-jp-3.c has the same problem, but I do not write a patch.
--
Summary: iconv -t iso-2022-jp returns diffrent result for 0x5c.
Product: glibc
Version: 2.3.3
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: oku dot ns at dream dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-pc-linux
GCC host triplet: x86_64-pc-linux
GCC target triplet: x86_64-pc-linux
http://sources.redhat.com/bugzilla/show_bug.cgi?id=497
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.