aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/euc-kr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-07 06:41:18 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-07 06:41:18 +0000
commit2528edd3176df331320f366ff3dad88cb6d82533 (patch)
treed0537f9f5029e45bda16088ff7d206bddb5da129 /iconvdata/euc-kr.c
parent9bcadd4e212c475e0dedcd9ac2e371bec6aa7c01 (diff)
downloadglibc-2528edd3176df331320f366ff3dad88cb6d82533.zip
glibc-2528edd3176df331320f366ff3dad88cb6d82533.tar.gz
glibc-2528edd3176df331320f366ff3dad88cb6d82533.tar.bz2
Update.
* iconvdata/euc-jp.c: Map characters in C1 area to itself. * iconvdata/euc-kr.c: Likewise.
Diffstat (limited to 'iconvdata/euc-kr.c')
-rw-r--r--iconvdata/euc-kr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iconvdata/euc-kr.c b/iconvdata/euc-kr.c
index abb40c8..7866958 100644
--- a/iconvdata/euc-kr.c
+++ b/iconvdata/euc-kr.c
@@ -27,7 +27,7 @@
static inline void
euckr_from_ucs4 (uint32_t ch, unsigned char *cp)
{
- if (ch > 0x7f)
+ if (ch > 0x9f)
{
if (__builtin_expect (ucs4_to_ksc5601 (ch, cp, 2), 0)
!= __UNKNOWN_10646_CHAR)
@@ -75,12 +75,12 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp)
ch = (uint32_t) inchar; \
*/ \
\
- if (ch <= 0x7f) \
+ if (ch <= 0x9f) \
/* Plain ASCII. */ \
++inptr; \
/* 0xfe(->0x7e : row 94) and 0xc9(->0x59 : row 41) are \
user-defined areas. */ \
- else if (__builtin_expect (ch, 0xa1) <= 0xa0 \
+ else if (__builtin_expect (ch, 0xa1) == 0xa0 \
|| __builtin_expect (ch, 0xa1) > 0xfe \
|| __builtin_expect (ch, 0xa1) == 0xc9) \
{ \