[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 02:37:49 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30508
--- Comment #12 from Mark Rowe (bdash) <mrowe at apple.com> 2009-10-21 02:37:47 PDT ---
// Hack around libxml2's lack of encoding overide support by manually
// resetting the encoding to UTF-16 before every chunk. Otherwise
libxml
// will detect <?xml version="1.0" encoding="<encoding name>"?> blocks
// and switch encodings, causing the parse to fail.
const UChar BOM = 0xFEFF;
const unsigned char BOMHighByte = *reinterpret_cast<const unsigned
char*>(&BOM);
xmlSwitchEncoding(m_context, BOMHighByte == 0xFF ?
XML_CHAR_ENCODING_UTF16LE : XML_CHAR_ENCODING_UTF16BE);
It seems like what is happening is that our hack to work around libxml2's lack
of encoding override support is just not working with the newer version of
libxml2.
--
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