summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-10-17 01:58:01 +0000
committerKenichi Handa <handa@m17n.org>1998-10-17 01:58:01 +0000
commit174a4cbee140d8c1bea7993c031a64d95b8c37ff (patch)
tree80f412a2e10add1a89355cd50f8a699ca2d18419 /src/coding.c
parent7540af8576d6c63cbb6de026fc206a5b0be918de (diff)
downloademacs-174a4cbee140d8c1bea7993c031a64d95b8c37ff.tar.gz
(decode_coding_iso2022): Set coding->fake_multibyte to
1 when encountered with a code of the range 0x80..0x9F.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index d32a35f31fb..c9bb4f92344 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1095,6 +1095,8 @@ decode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
}
*dst++ = c1;
coding->produced_char++;
+ if (c1 >= 0x80)
+ coding->fake_multibyte = 1;
break;
case ISO_carriage_return: