diff options
Diffstat (limited to 'iconvdata/8bit-generic.c')
-rw-r--r-- | iconvdata/8bit-generic.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iconvdata/8bit-generic.c b/iconvdata/8bit-generic.c index 6ed5532..373289f 100644 --- a/iconvdata/8bit-generic.c +++ b/iconvdata/8bit-generic.c @@ -47,6 +47,15 @@ ++inptr; \ } #define LOOP_NEED_FLAGS +#define ONEBYTE_BODY \ + { \ + uint32_t ch = to_ucs4[c]; \ + \ + if (HAS_HOLES && __builtin_expect (ch == L'\0', 0) && c != '\0') \ + return WEOF; \ + else \ + return ch; \ + } #include <iconv/loop.c> |