Corrected another bug in my patch for detecting UTF-32 BOMs.
This commit is contained in:
parent
f3efdff878
commit
9a09a93a5b
@ -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;
|
||||
|
Reference in New Issue
Block a user