projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New module 'sprintf-posix'.
[gnulib.git]
/
lib
/
unistr
/
u32-mbtouc.c
diff --git
a/lib/unistr/u32-mbtouc.c
b/lib/unistr/u32-mbtouc.c
index
30b907b
..
824db3c
100644
(file)
--- 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;
{
uint32_t c = *s;
-#if CONFIG_UNICODE_SAFETY
if (c < 0xd800 || (c >= 0xe000 && c < 0x110000))
if (c < 0xd800 || (c >= 0xe000 && c < 0x110000))
-#endif
*puc = c;
else
*puc = c;
else
-#if CONFIG_UNICODE_SAFETY
/* invalid multibyte character */
*puc = 0xfffd;
/* invalid multibyte character */
*puc = 0xfffd;
-#endif
return 1;
}
return 1;
}