2006-03-16 Kenichi Handa <handa@m17n.org>
+ * international/mule.el (auto-coding-regexp-alist): Add entries
+ for Unicode BOM.
+
* sort.el (sort-build-lists): Temporarily bind
inhibit-field-text-motion to t.
(symbol :tag "Coding system"))))
(defcustom auto-coding-regexp-alist
- '(("^BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion))
+ '(("^BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion)
+ ("\\`\xFE\xFF" . utf-16be-with-signature)
+ ("\\`\xFF\xFE" . utf-16le-with-signature)
+ ("\\`\xEF\xBB\xBF" . utf-8))
"Alist of patterns vs corresponding coding systems.
Each element looks like (REGEXP . CODING-SYSTEM).
A file whose first bytes match REGEXP is decoded by CODING-SYSTEM on reading.