Corrected another bug in my patch for detecting UTF-32 BOMs.
This commit is contained in:
parent
f3efdff878
commit
9a09a93a5b
@ -2381,6 +2381,7 @@ check_bom(int sno, StreamDesc *st)
|
|||||||
st->stream_gets = DefaultGets;
|
st->stream_gets = DefaultGets;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
ch = st->stream_getc(sno);
|
||||||
if (ch == EOFCHAR || ch != 0xFF) {
|
if (ch == EOFCHAR || ch != 0xFF) {
|
||||||
st->och = ch;
|
st->och = ch;
|
||||||
st->stream_getc = PlUnGetc0000fe;
|
st->stream_getc = PlUnGetc0000fe;
|
||||||
|
Reference in New Issue
Block a user