summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs/_codecs_iso2022.c
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2006-03-13 10:20:08 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2006-03-13 10:20:08 (GMT)
commitabb903fd54596cba08129a110bc53d9ca21935a9 (patch)
treed4151791caf16e6377c6b03c6ba9f3b9ac4304b0 /Modules/cjkcodecs/_codecs_iso2022.c
parent6058aa40d288d8cdd93dddfe9c660450f598b3ae (diff)
downloadcpython-abb903fd54596cba08129a110bc53d9ca21935a9.zip
cpython-abb903fd54596cba08129a110bc53d9ca21935a9.tar.gz
cpython-abb903fd54596cba08129a110bc53d9ca21935a9.tar.bz2
Bug #1448490: Fix a bug that ISO-2022 codecs could not handle
SS2 (single-shift 2) escape sequences correctly.
Diffstat (limited to 'Modules/cjkcodecs/_codecs_iso2022.c')
-rw-r--r--Modules/cjkcodecs/_codecs_iso2022.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/_codecs_iso2022.c b/Modules/cjkcodecs/_codecs_iso2022.c
index 1e52c34..8a2ab7e 100644
--- a/Modules/cjkcodecs/_codecs_iso2022.c
+++ b/Modules/cjkcodecs/_codecs_iso2022.c
@@ -414,7 +414,7 @@ iso2022processg2(const void *config, MultibyteCodec_State *state,
(*inbuf) += 3;
*inleft -= 3;
(*outbuf) += 1;
- *outbuf -= 1;
+ *outleft -= 1;
return 0;
}