[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#342132: iconv: incomplete -f utf-8 -t gb2312 mappings etc.



Package: libc6
Version: 2.3.5-7
Severity: minor
File: /usr/bin/iconv
Tags: upstream

In this case of two big5 characters that map to one gb2312 character,
$ echo $a|qp-encode
=C5=A6 #organ
$ echo $a|iconv -t gb2312 -f big5 |iconv -f gb2312 -t big5|qp-encode
=C5=BC #dirty
You have mapped it back to the less common second choice "dirty", according to
many dictionaries.

By the way, you have not completed these mappings yet!:
$ echo =C5=BC|qp-decode|iconv -t utf-8 -f big5|iconv -f utf-8 -t gb2312
iconv: illegal input sequence at position 0
$ echo =C5=A6|qp-decode|iconv -t utf-8 -f big5|iconv -f utf-8 -t gb2312
iconv: illegal input sequence at position 0

And I don't know what went wrong in e.g., the latter of:
$ echo =C5=A6|qp-decode|iconv -t utf-8 -f big5| iconv -f utf-8 -t big5|qp-encode
=C5=A6
$ echo =C5=A6|qp-decode|iconv -t gb2312 -f big5|iconv -t utf-8 -f gb2312|
iconv -f utf-8 -t big5
iconv: illegal input sequence at position 0

$ But others are OK:
$ echo $b|qp-encode
=A4@ #one
$ echo $b|iconv -t utf-8 -f big5|iconv -f utf-8 -t gb2312|
iconv -f gb2312 -t big5|qp-encode
=A4@



Reply to: