diff options
| author | Kenichi Handa <handa@m17n.org> | 2010-09-08 11:21:03 +0900 |
|---|---|---|
| committer | Kenichi Handa <handa@m17n.org> | 2010-09-08 11:21:03 +0900 |
| commit | a552b35afa83816d3a4bfaa32be91c196a68e41b (patch) | |
| tree | e9dd2e752bd9d9e069f0a70bf4b81b57d60ed9b2 /src/coding.c | |
| parent | 439dcbc16bd3d4fcef87736fe84173de6af4cf2e (diff) | |
| download | emacs-a552b35afa83816d3a4bfaa32be91c196a68e41b.tar.gz | |
coding.c (encode_coding_iso_2022): Do not optimize for ASCII if we may use designation or locking-shift.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) charset_list = CODING_ATTR_CHARSET_LIST (attrs); coding->safe_charsets = SDATA (CODING_ATTR_SAFE_CHARSETS (attrs)); - ascii_compatible = ! NILP (CODING_ATTR_ASCII_COMPAT (attrs)); + ascii_compatible + = (! NILP (CODING_ATTR_ASCII_COMPAT (attrs)) + && ! (CODING_ISO_FLAGS (coding) & (CODING_ISO_FLAG_DESIGNATION + | CODING_ISO_FLAG_LOCKING_SHIFT))); while (charbuf < charbuf_end) { |
