[Bug 355755] New: iconv from glibc generates nonstandard UCS-2 encoding.
https://bugzilla.novell.com/show_bug.cgi?id=355755 Summary: iconv from glibc generates nonstandard UCS-2 encoding. Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jw@novell.com QAContact: qa@suse.de Found By: --- echo Hello World > test.txt iconv -t UCS-2 test.txt > test.ucs2 xxd test.ucs2 0000000: 4800 6500 6c00 6c00 6f00 2000 5700 6f00 H.e.l.l.o. .W.o. 0000010: 7200 6c00 6400 0a00 r.l.d... This hexdump shows little-endian ucs-2, but misses a BOM. The BOM is defined in rfc2781 and explained as follows in http://en.wikipedia.org/wiki/UTF-16: The UTF-16 (and UCS-2) encoding scheme allows either endian representation to be used, but mandates that the byte order should be explicitly indicated by prepending a Byte Order Mark before the first serialized character. This BOM is the encoded version of the Zero-Width No-Break Space (ZWNBSP) character, codepoint U+FEFF, chosen because it should never legitimately appear at the beginning of any character data. This results in the byte sequence FE FF (in hexadecimal) for big-endian architectures, or FF FE for little-endian. The BOM at the beginning of a UTF-16 or UCS-2 encoded data is considered to be a signature separate from the text itself; it is for the benefit of the decoder. [...] The BOM is not optional in the UCS-2 scheme. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=355755 Juergen Weigert <jw@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |355757 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=355755 Juergen Weigert <jw@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|355757 | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=355755 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sbrabec@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |pbaudis@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=355755 User pbaudis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=355755#c1 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jw@novell.com --- Comment #1 from Petr Baudis <pbaudis@novell.com> 2008-07-06 09:58:06 MDT --- I could not find out any standard document that says that UCS-2 would require BOM at the beginning of a string, and I do not have access to ISO10646; the claim in Wikipedia is not sourced. Do you have any standard references? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=355755 User aj@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=355755#c2 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|jw@novell.com | Resolution| |NORESPONSE --- Comment #2 from Andreas Jaeger <aj@novell.com> 2008-10-24 03:50:04 MDT --- The requested information has not been provided for more than 4 weeks. The bug gets therefore closed as NORESPONSE. Please reopen the bug if you can supply the requested information. I would appreciate if you could test openSUSE 11.1 Beta3 first and report whether the bug exists there as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com