musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/locale/iconv.c 1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/locale/iconv.c b/src/locale/iconv.c
index 30a457f3..c48e45aa 100644
--- a/src/locale/iconv.c
+++ b/src/locale/iconv.c
@@ -336,6 +336,7 @@ size_t iconv(iconv_t cd0, char **in, size_t *inb, char **out, size_t *outb)
}
if (type-UCS2BE < 2U) goto ilseq;
if (*outb < 4) goto toobig;
+ c -= 0x10000;
put_16((void *)*out, (c>>10)|0xd800, totype);
put_16((void *)(*out + 2), (c&0x3ff)|0xdc00, totype);
*out += 4;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月24日 18:56:24 +0000

AltStyle によって変換されたページ (->オリジナル) /