diff options
Diffstat (limited to 'iconvdata/ibm939.c')
-rw-r--r-- | iconvdata/ibm939.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/iconvdata/ibm939.c b/iconvdata/ibm939.c index dbdda62..c0a75f7 100644 --- a/iconvdata/ibm939.c +++ b/iconvdata/ibm939.c @@ -109,24 +109,14 @@ enum \ if (__builtin_expect (ch, 0) == SO) \ { \ - /* Shift OUT, change to DBCS converter. */ \ - if (curcs == db) \ - { \ - result = __GCONV_ILLEGAL_INPUT; \ - break; \ - } \ + /* Shift OUT, change to DBCS converter (redundant escape okay). */ \ curcs = db; \ ++inptr; \ continue; \ } \ else if (__builtin_expect (ch, 0) == SI) \ { \ - /* Shift IN, change to SBCS converter. */ \ - if (curcs == sb) \ - { \ - result = __GCONV_ILLEGAL_INPUT; \ - break; \ - } \ + /* Shift IN, change to SBCS converter (redundant escape okay). */ \ curcs = sb; \ ++inptr; \ continue; \ |