aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/iso-2022-jp.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/iso-2022-jp.c')
-rw-r--r--iconvdata/iso-2022-jp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconvdata/iso-2022-jp.c b/iconvdata/iso-2022-jp.c
index bd2e033746..bb7cc1831e 100644
--- a/iconvdata/iso-2022-jp.c
+++ b/iconvdata/iso-2022-jp.c
@@ -359,7 +359,7 @@ gconv_end (struct __gconv_step *data)
else if (__builtin_expect (set2, ISO88597_set) == ISO88597_set) \
{ \
/* We use the table from the ISO 8859-7 module. */ \
- if (inptr[2] < 0x20 || inptr[2] > 0x80) \
+ if (inptr[2] < 0x20 || inptr[2] >= 0x80) \
{ \
if (! ignore_errors_p ()) \
{ \
@@ -800,7 +800,7 @@ gconv_end (struct __gconv_step *data)
} \
*outptr++ = ESC; \
*outptr++ = 'N'; \
- *outptr++ = ch; \
+ *outptr++ = ch - 0x80; \
} \
else \
{ \