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

This commit is contained in:
Paulo Moura 2010-10-27 17:43:00 +01:00
parent f3efdff878
commit 9a09a93a5b
1 changed files with 3 additions and 2 deletions

View File

@ -2379,8 +2379,9 @@ check_bom(int sno, StreamDesc *st)
st->stream_getc = PlUnGetc0000;
st->stream_wgetc = get_wchar;
st->stream_gets = DefaultGets;
return TRUE;
} else {
return TRUE;
} else {
ch = st->stream_getc(sno);
if (ch == EOFCHAR || ch != 0xFF) {
st->och = ch;
st->stream_getc = PlUnGetc0000fe;