aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2011-12-28 16:55:49 +0900
committerKenichi Handa2011-12-28 16:55:49 +0900
commit0e5317f7e42c1008c40305a94afcdff509a475be (patch)
tree57b7887393d3f896a7354c32c4702dc1f9da20a9 /src/coding.c
parent29a8b279e3a7764e424bc66711d1f79bf75242de (diff)
downloademacs-0e5317f7e42c1008c40305a94afcdff509a475be.tar.gz
emacs-0e5317f7e42c1008c40305a94afcdff509a475be.zip
coding.c: (Fdefine_coding_system_internal): Make an utf-8 base coding-system ASCII compatible only when it does not produce BOM on encoding (Bug#10383).
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index e15d725af3a..2db5385c932 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -9999,8 +9999,6 @@ usage: (define-coding-system-internal ...) */)
9999 { 9999 {
10000 Lisp_Object bom; 10000 Lisp_Object bom;
10001 10001
10002 CODING_ATTR_ASCII_COMPAT (attrs) = Qt;
10003
10004 if (nargs < coding_arg_utf8_max) 10002 if (nargs < coding_arg_utf8_max)
10005 goto short_args; 10003 goto short_args;
10006 10004
@@ -10014,6 +10012,8 @@ usage: (define-coding-system-internal ...) */)
10014 CHECK_CODING_SYSTEM (val); 10012 CHECK_CODING_SYSTEM (val);
10015 } 10013 }
10016 ASET (attrs, coding_attr_utf_bom, bom); 10014 ASET (attrs, coding_attr_utf_bom, bom);
10015 if (NILP (bom))
10016 CODING_ATTR_ASCII_COMPAT (attrs) = Qt;
10017 10017
10018 category = (CONSP (bom) ? coding_category_utf_8_auto 10018 category = (CONSP (bom) ? coding_category_utf_8_auto
10019 : NILP (bom) ? coding_category_utf_8_nosig 10019 : NILP (bom) ? coding_category_utf_8_nosig