aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/coding.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3dda03c963f..f46e02b9193 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-09-08 Kenichi Handa <handa@m17n.org>
2
3 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4 we may use designation or locking-shift.
5
12010-09-07 Kenichi Handa <handa@m17n.org> 62010-09-07 Kenichi Handa <handa@m17n.org>
2 7
3 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte 8 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
diff --git a/src/coding.c b/src/coding.c
index d62998f4c8b..92b328091ff 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4528,7 +4528,10 @@ encode_coding_iso_2022 (coding)
4528 charset_list = CODING_ATTR_CHARSET_LIST (attrs); 4528 charset_list = CODING_ATTR_CHARSET_LIST (attrs);
4529 coding->safe_charsets = SDATA (CODING_ATTR_SAFE_CHARSETS (attrs)); 4529 coding->safe_charsets = SDATA (CODING_ATTR_SAFE_CHARSETS (attrs));
4530 4530
4531 ascii_compatible = ! NILP (CODING_ATTR_ASCII_COMPAT (attrs)); 4531 ascii_compatible
4532 = (! NILP (CODING_ATTR_ASCII_COMPAT (attrs))
4533 && ! (CODING_ISO_FLAGS (coding) & (CODING_ISO_FLAG_DESIGNATION
4534 | CODING_ISO_FLAG_LOCKING_SHIFT)));
4532 4535
4533 while (charbuf < charbuf_end) 4536 while (charbuf < charbuf_end)
4534 { 4537 {