[Webkit-unassigned] [Bug 30508] [libxml2] parsing broken with libxml2 >= 2.7.6

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 21 01:47:28 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30508





--- Comment #11 from Mark Rowe (bdash) <mrowe at apple.com>  2009-10-21 01:47:27 PDT ---
(In reply to comment #10)
> Created an attachment (id=41555)
 --> (https://bugs.webkit.org/attachment.cgi?id=41555) [details]
> test case: switching encoding to utf-16 breaks parsing
> 
> Sample output:
> 
> encoding switched to UTF-16
> SAX.startDocument()
> SAX.endDocument()
> error 4: Document is empty
> 
> ----------
> using default encoding
> SAX.startDocument()
> successful parse
> ----------

This example has little relation to what WebKit does.  In your example you’re
passing ASCII data to libxml2 to parse.  It’s not surprising that it would be
unhappy to attempt to parse that as UTF-16.  WebKit passes in UTF-16 data from
a WebCore::String.

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


More information about the webkit-unassigned mailing list