Corrected a bug in my patch for detecting UTF-32 BOMs.
This commit is contained in:
parent
89411acbc9
commit
168e084c62
@ -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) {
|
||||
|
Reference in New Issue
Block a user