aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2013-03-11 00:06:04 +0900
committerKenichi Handa <[email protected]>2013-03-11 00:06:04 +0900
commit7d051e215477753b813864caa23c1009c7692bda (patch)
tree6f3f3e3d1f63844ef5c98a5b64a75c9b4095b695 /src/coding.c
parenta6ebf83d9065b9b32231cd544d70195fb7ba97ae (diff)
Fix previous change.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 98af4ddcef..d6560a92b7 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -7509,7 +7509,9 @@ decode_coding_gap (struct coding_system *coding,
#ifndef CODING_DISABLE_ASCII_OPTIMIZATION
if (! NILP (CODING_ATTR_ASCII_COMPAT (attrs))
&& NILP (CODING_ATTR_POST_READ (attrs))
- && NILP (get_translation_table (attrs, 0, NULL)))
+ && NILP (get_translation_table (attrs, 0, NULL))
+ && (inhibit_eol_conversion
+ || EQ (CODING_ID_EOL_TYPE (coding->id), Qunix)))
{
/* We can skip the conversion if all source bytes are ASCII. */
if (coding->head_ascii < 0)