This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
JOHAB encoder is incomplete
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: JOHAB encoder is incomplete
- From: Bruno Haible <haible at ilog dot fr>
- Date: Mon, 20 Dec 1999 16:38:34 +0100 (MET)
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