This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

JOHAB encoder is incomplete



Hello,

In glibc-2.1.1, the JOHAB decoder can not encode valid text. To reproduce:

Take some given text in Johab:
$ printf 'Korean (\xD0\x65\x8B\x69)\x09\x09\x09\xB4\x65\x91\x77\xD0\x61\xAD\x41\xB6\x61, \xB4\x65\x91\x77\xD0\x61\xAF\xB3\x93\xA1\x8C\x61\n\x09KSC  -- \xF0\x3A\xE3\xA8  \xE0\xD2\xE8\xA1\n' > x

Convert it to UTF-8:
$ iconv -f JOHAB -t UTF-8 < x > y

Convert it back to JOHAB:
$ iconv -f UTF-8 -t JOHAB < y > z
iconv: illegal input sequence at position 8

Bruno

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]