aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/cp1255.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/cp1255.c')
-rw-r--r--iconvdata/cp1255.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/iconvdata/cp1255.c b/iconvdata/cp1255.c
index af69e833da..19edb27a66 100644
--- a/iconvdata/cp1255.c
+++ b/iconvdata/cp1255.c
@@ -204,15 +204,7 @@ static const struct { unsigned int idx; unsigned int len; } comp_table[8] = {
if (__builtin_expect (ch == L'\0', 0)) \
{ \
/* This is an illegal character. */ \
- if (! ignore_errors_p ()) \
- { \
- result = __GCONV_ILLEGAL_INPUT; \
- break; \
- } \
- \
- ++inptr; \
- ++*irreversible; \
- continue; \
+ STANDARD_FROM_LOOP_ERR_HANDLER (1); \
} \
} \
\
@@ -543,7 +535,7 @@ static const struct {
\
failed: \
/* This is an illegal character. */ \
- STANDARD_ERR_HANDLER (4); \
+ STANDARD_TO_LOOP_ERR_HANDLER (4); \
} \
} \
}