I'm not really sure why this version of the file is still here, but

migrate the UTF-8 BOM fix here as well, so this does not get too far
out of sync.
This commit is contained in:
Fred L. Drake, Jr. 2001-07-27 13:59:00 +00:00
parent cff7d19ac6
commit bb4a4de066

View File

@ -1489,6 +1489,7 @@ int initScan(const ENCODING **encodingTable,
if (ptr + 2 == end)
return XML_TOK_PARTIAL;
if ((unsigned char)ptr[2] == 0xBF) {
*nextTokPtr = ptr + 3;
*encPtr = encodingTable[UTF_8_ENC];
return XML_TOK_BOM;
}