do not check for bom over binary files (obs from Nuno Fonseca).

This commit is contained in:
Vítor Manuel de Morais Santos Costa 2010-01-12 14:08:38 +00:00
parent 324833f84a
commit 4670e456a5
1 changed files with 4 additions and 1 deletions

View File

@ -2361,8 +2361,11 @@ p_open (void)
}
unix_upd_stream_info (st);
if (opts != 0) {
if (opts & 2)
if (opts & 2) {
st->status |= Binary_Stream_f;
/* we should not search for a byter order mark on a binary file */
avoid_bom = TRUE;
}
if (opts & 4) {
if (st->status & (Tty_Stream_f|Socket_Stream_f|InMemory_Stream_f)) {
Term ta[1], t;