projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tests for module 'strcasestr'.
[gnulib.git]
/
lib
/
unistr
/
u16-mbtouc.c
diff --git
a/lib/unistr/u16-mbtouc.c
b/lib/unistr/u16-mbtouc.c
index
80c0430
..
937d4bb
100644
(file)
--- a/
lib/unistr/u16-mbtouc.c
+++ b/
lib/unistr/u16-mbtouc.c
@@
-34,15
+34,11
@@
u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n)
*puc = c;
return 1;
}
-#if CONFIG_UNICODE_SAFETY
if (c < 0xdc00)
-#endif
{
if (n >= 2)
{
-#if CONFIG_UNICODE_SAFETY
if (s[1] >= 0xdc00 && s[1] < 0xe000)
-#endif
{
*puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00);
return 2;