[Webkit-unassigned] [Bug 17079] XML document sent with wrong encoding does not fail as expected (affects Acid3 test 70)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 18 19:00:28 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=17079


webkit-bugs at gentlyusedunderwear.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webkit-
                   |                            |bugs at gentlyusedunderwear.com




------- Comment #9 from webkit-bugs at gentlyusedunderwear.com  2008-03-18 19:00 PDT -------
Sadly, this is not a layering violation any more C10 of the Unicode 5.0
specification Chapter 3 (http://www.unicode.org/versions/Unicode5.0.0/ch03.pdf)
says:

"When a process interprets a code unit sequence which purports to be in a
Unicode character encoding form, it shall treat ill-formed code unit sequences
as an error condition and shall not interpret such sequences as characters. "

It may have been a layering violation when the XML part of this was originally
written. But it isn't as of Unicode 5.0, since it explicitly says "error
condition". And these XML specs are free to specify exactly what happens in an
"error condition".

(Many Text based apps just replace the invalids with U+FFFD
(http://www.fileformat.info/info/unicode/char/fffd/index.htm) as it is far
worse for these applications to bail when encountering invalid codepoints)


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list