From 392ac9698469dbf25826fa8dcd21811dd8abe5e8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Jun 2000 18:11:30 +0000 Subject: Update. * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid sequences with first by 0x8e correctly. --- iconvdata/euc-jp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'iconvdata/euc-jp.c') diff --git a/iconvdata/euc-jp.c b/iconvdata/euc-jp.c index fc0794d700..39cf6a8b7a 100644 --- a/iconvdata/euc-jp.c +++ b/iconvdata/euc-jp.c @@ -96,6 +96,16 @@ { \ /* This is code set 2: half-width katakana. */ \ ch = jisx0201_to_ucs4 (ch2); \ + if (__builtin_expect (ch, 0) == __UNKNOWN_10646_CHAR) \ + { \ + /* Illegal character. */ \ + if (! ignore_errors_p ()) \ + { \ + /* This is an illegal character. */ \ + result = __GCONV_ILLEGAL_INPUT; \ + break; \ + } \ + \ inptr += 2; \ } \ else \ -- cgit v1.2.3