changeset 69504:112d44d51c3e

(auto-coding-regexp-alist): Add entries for Unicode BOM.
author Kenichi Handa <handa@m17n.org>
date Thu, 16 Mar 2006 02:21:34 +0000
parents 0937e89a24cd
children 2e71cef4425b
files lisp/international/mule.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule.el	Thu Mar 16 02:11:08 2006 +0000
+++ b/lisp/international/mule.el	Thu Mar 16 02:21:34 2006 +0000
@@ -1586,7 +1586,10 @@
 		       (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.