With the very same file, the iconv output is different under FreeBSD and
Linux (both on Intel PIII). I don't want to find the cause of the
difference (version numbers would helpful if that where the case),
rather I want to know which output is the right one according to specs
or common sense or even both :).
Linux:
$ cat t.txt | iconv -f utf-8 -t utf-16 | hexdump
0000000 0501 0d01 1901 1701 2f01 6101 7301 6b01
0000010 1e20 1c20 7e01 0a00
0000018
FreeBSD:
$ cat t.txt | iconv -f utf-8 -t utf-16 | hexdump
0000000 fffe 0501 0d01 1901 1701 2f01 6101 7301
0000010 6b01 1e20 1c20 7e01 0a00
000001a
Wprint (a postscript filter for Netscape/Mozilla printing output) is
now, under FreeBSD sending the "fffe" as a valid character because it
does not expect it. Although it is easy to just skip it if it is
present I would like to know if it should be present at all.
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/