Corrected a bug in my patch for detecting UTF-32 BOMs.

This commit is contained in:
Paulo Moura 2010-10-27 17:19:26 +01:00
parent 89411acbc9
commit 168e084c62

View File

@ -2438,12 +2438,12 @@ check_bom(int sno, StreamDesc *st)
st->encoding = ENC_ISO_UTF32_LE;
return TRUE;
}
}
st->status |= HAS_BOM_f;
st->encoding = ENC_UNICODE_LE;
return TRUE;
}
}
}
case 0xEF:
ch = st->stream_getc(sno);
if (ch != 0xBB) {