changeset 95399:3a9b63459609

(utf-8-sig, utf-8-auto): New coding systems.
author Kenichi Handa <handa@m17n.org>
date Thu, 29 May 2008 22:59:28 +0000
parents f7271aace10a
children 94588fd84288
files lisp/international/mule-conf.el
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule-conf.el	Thu May 29 22:58:58 2008 +0000
+++ b/lisp/international/mule-conf.el	Thu May 29 22:59:28 2008 +0000
@@ -1253,12 +1253,26 @@
  :mnemonic ?M)
 
 (define-coding-system 'utf-8
-  "UTF-8."
+  "UTF-8 (no signature (BOM))"
   :coding-type 'utf-8
   :mnemonic ?U
   :charset-list '(unicode)
   :mime-charset 'utf-8)
 
+(define-coding-system 'utf-8-sig
+  "UTF-8 (with signature (BOM))"
+  :coding-type 'utf-8
+  :mnemonic ?U
+  :charset-list '(unicode)
+  :bom t)
+
+(define-coding-system 'utf-8-auto
+  "UTF-8 (auto-detect signature (BOM))"
+  :coding-type 'utf-8
+  :mnemonic ?U
+  :charset-list '(unicode)
+  :bom '(utf-8-sig . utf-8))
+
 (define-coding-system-alias 'mule-utf-8 'utf-8)
 
 (define-coding-system 'utf-8-emacs