Actions:
|
2007-05-24 16:04 AEST by Arthur Barrett - Tony added code to 2.5.04 to find other BOM but it caused update-patch and diff
to stop working. So it was removed:
Index: io.c
===================================================================
RCS file: /usr/local/cvs/cvsnt/diff/io.c,v
retrieving revision 1.16.2.18
retrieving revision 1.16.2.17
diff -c -r1.16.2.18 -r1.16.2.17
*** io.c 1 Sep 2006 11:59:07 -0000 1.16.2.18
--- io.c 7 Feb 2006 18:10:28 -0000 1.16.2.17
***************
*** 122,134 ****
current->buffered_chars = 0;
}
#endif
! if(binary_file_p (current->buffer, n))
! return 1;
! if(current->buffered_chars>3 && !memcmp(current-
>buffer,"\xef\xbb\xbf",3))
! {
! memmove(current->buffer,current->buffer+3,current-
>buffered_chars-3);
! current->buffered_chars-=3;
! }
}
#ifdef HAVE_SETMODE
--- 122,128 ----
current->buffered_chars = 0;
}
#endif
! return binary_file_p (current->buffer, n);
}
#ifdef HAVE_SETMODE
***************
*** 144,165 ****
pfatal_with_name (current->name);
}
#endif
}
! if(current->bufsize>3)
! {
! int n = read (current->desc, current->buffer, 3);
! if (n == -1)
! pfatal_with_name (current->name);
! if(!memcmp(current->buffer,"\xef\xbb\xbf",3))
! {
! current->buffered_chars=0;
! }
! else
! current->buffered_chars=3;
! }
! else
! current->buffered_chars = 0;
return 0;
}
--- 138,147 ----
pfatal_with_name (current->name);
}
#endif
+
}
! current->buffered_chars = 0;
return 0;
} |