X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funistr%2Fu32-mbtouc.c;h=824db3c92866961f2a835d21024623c256933ca8;hb=ccd54782ae73477aa3f3987ab04db9e6fde025d6;hp=30b907b42ff4467f5f34e561316c38f3120b129a;hpb=1426f5a70d23f84b079e9ae052dc1de829f643e7;p=gnulib.git diff --git a/lib/unistr/u32-mbtouc.c b/lib/unistr/u32-mbtouc.c index 30b907b42..824db3c92 100644 --- a/lib/unistr/u32-mbtouc.c +++ b/lib/unistr/u32-mbtouc.c @@ -29,15 +29,11 @@ u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n) { uint32_t c = *s; -#if CONFIG_UNICODE_SAFETY if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) -#endif *puc = c; else -#if CONFIG_UNICODE_SAFETY /* invalid multibyte character */ *puc = 0xfffd; -#endif return 1; }