[MERGE REVIEW] Binary file handling
Aaron Bentley
aaron.bentley at utoronto.ca
Wed Apr 19 15:36:28 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
> There is a defined way to detect utf16 though - look for the byte
> ordering mark.
Sure. But then we're definitely into the realm of filetype-specific
diff and merge operations, since UTF-16 files use 16-bit words, and so
we can't detect line endings properly without parsing them as UTF-16.
(Parsing them as byte files produces false positives.)
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFERkrs0F+nu1YWqI0RAukFAJ97/zsQzFVm/mgK8QWH07QIFN8MJQCfQEEI
LsVUdq+kbDSyWyd/CGJ8E+I=
=tLuF
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list