Artifact 9fecfa0e9d2cc4de9389e085e0f1ce236fcb2ecd:
- File src/diff.c — part of check-in [64868f2b98] at 2012-11-01 14:49:05 on branch improve_looks_like_binary — Add back checks for FFFE and FFFF in looks_like_text: <br>- FFFE is a reversed BOM. It could arise when an UTF-16LE and an UTF-16BE file are concatenated. This is always a fatal error, so diff should bail out early. <br>- FFFF is a permanently unassigned character as well, which doesn't exist in any font. Sometimes uninitialized variables are either initialized with 0000 or FFFF, so this makes it much more likely that binary files are detected early. <p>The earlier check for FEFF was not sensible: A BOM in the middle of an UTF-16 file could easily arise when two UTF-16LE or twe UTF-16BE files are concatenated. Nothing goes wrong in that case, the BOM should just be displayed a zero-width-space. Therefore, diff should not bail out. (user: jan.nijtmans size: 64135)
A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.