aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2003-12-03 08:23:53 +0000
committerKenichi Handa <[email protected]>2003-12-03 08:23:53 +0000
commit47dc91adce52d424c52312a4cd73395adb532144 (patch)
tree882a9d6863b73b4f09f511a24f6ce67e935f74f5 /src/coding.c
parentac00d71ca6cbfef92a13f39d26633ba23281bc84 (diff)
(decode_coding_iso2022): Fix for preserving UTF-8
encoding sequence.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 910fc8faa6..3f11c6f41f 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -2125,7 +2125,10 @@ decode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
&& src + 1 < src_end
&& src[0] == '%'
&& src[1] == '@')
- break;
+ {
+ src += 2;
+ break;
+ }
d += CHAR_STRING (c1, d), produced_chars++;
}
if (d + 3 > (dst_bytes ? dst_end : src))