diff options
| author | Stefan Monnier | 2010-09-30 01:28:20 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-30 01:28:20 +0200 |
| commit | a01a7932080e8a6e7bc8472c58cefabcc2c37df3 (patch) | |
| tree | 94b28b19c8f1536e76ffe7d5826811b74a79e3a5 /src/coding.c | |
| parent | cc390e46c7ba95b76ea133d98fd386214cd01709 (diff) | |
| parent | 6b0f7311f16646e0de2045b2410e20921901c616 (diff) | |
| download | emacs-a01a7932080e8a6e7bc8472c58cefabcc2c37df3.tar.gz emacs-a01a7932080e8a6e7bc8472c58cefabcc2c37df3.zip | |
Merge from trunk
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 6012978b60a..d6285ed9245 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -2008,7 +2008,7 @@ detect_coding_emacs_mule (struct coding_system *coding, | |||
| 2008 | } | 2008 | } |
| 2009 | else | 2009 | else |
| 2010 | { | 2010 | { |
| 2011 | int more_bytes = emacs_mule_bytes[*src_base] - 1; | 2011 | int more_bytes = emacs_mule_bytes[c] - 1; |
| 2012 | 2012 | ||
| 2013 | while (more_bytes > 0) | 2013 | while (more_bytes > 0) |
| 2014 | { | 2014 | { |
| @@ -4490,7 +4490,10 @@ encode_coding_iso_2022 (struct coding_system *coding) | |||
| 4490 | charset_list = CODING_ATTR_CHARSET_LIST (attrs); | 4490 | charset_list = CODING_ATTR_CHARSET_LIST (attrs); |
| 4491 | coding->safe_charsets = SDATA (CODING_ATTR_SAFE_CHARSETS (attrs)); | 4491 | coding->safe_charsets = SDATA (CODING_ATTR_SAFE_CHARSETS (attrs)); |
| 4492 | 4492 | ||
| 4493 | ascii_compatible = ! NILP (CODING_ATTR_ASCII_COMPAT (attrs)); | 4493 | ascii_compatible |
| 4494 | = (! NILP (CODING_ATTR_ASCII_COMPAT (attrs)) | ||
| 4495 | && ! (CODING_ISO_FLAGS (coding) & (CODING_ISO_FLAG_DESIGNATION | ||
| 4496 | | CODING_ISO_FLAG_LOCKING_SHIFT))); | ||
| 4494 | 4497 | ||
| 4495 | while (charbuf < charbuf_end) | 4498 | while (charbuf < charbuf_end) |
| 4496 | { | 4499 | { |