121-magic-update-utf.patch 937 B

123456789101112131415161718
  1. Author: Adam Buchbinder <adam.buchbinder@gmail.com>
  2. Description:
  3. UTF-32BE text is detected by the presence of the Byte Order Mark, in UTF-32BE
  4. encoding. The stock version of the BOM is incorrect; it should read 00 00 FE
  5. FF, according to the Unicode FAQ: http://unicode.org/faq/utf_bom.html#bom4
  6. (Closes: #513526).
  7. diff -Naurp file.orig/magic/Magdir/unicode file/magic/Magdir/unicode
  8. --- file.orig/magic/Magdir/unicode 2009-03-21 09:20:03.000000000 +0000
  9. +++ file/magic/Magdir/unicode 2009-03-21 17:02:09.000000000 +0000
  10. @@ -9,6 +9,6 @@
  11. 0 string +/v+ Unicode text, UTF-7
  12. 0 string +/v/ Unicode text, UTF-7
  13. 0 string \335\163\146\163 Unicode text, UTF-8-EBCDIC
  14. -0 string \376\377\000\000 Unicode text, UTF-32, big-endian
  15. +0 string \000\000\376\377 Unicode text, UTF-32, big-endian
  16. 0 string \377\376\000\000 Unicode text, UTF-32, little-endian
  17. 0 string \016\376\377 Unicode text, SCSU (Standard Compression Scheme for Unicode)