On Mon, 9 Jul 2012, jmg wrote: > Package: diff > Version: 1:3.0-1
Please note that when reporting bugs, you should try the latest version if possible. In this case, wheezy has version 3.2. > Severity: normal > > When diff is used to compare two files which are identical line by > line and a unique difference which is wether BOM is present or not > to indicates UTF-8 encoding, diff does not indicate the good > difference. Please explain what do you mean by "does not indicate the good difference". I have used this #include <stdio.h> int main() { printf("%c%c%c", 0xef,0xbb,0xbf); return 0; } to create a UTF8 BOM and then I've created two text files, one with the BOM at the beginning and another one without it. This is what I *see* when I make the diff: 1c1 < Hello. --- > Hello. but if I redirect the output to a file and use patch, the first file becomes identical to the second file, so the diff is correct. Are you reporting that BOM is invisible like spaces? Why should we consider that as a bug in the "diff" program? If it's invisible, blame the terminal, not diff! -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org