shared: utf8 - support decoding the full utf16

System Internals / systemd - Tom Gundersen [jklm.no] - 22 December 2014 13:26 EST

We originally only supported the BMP (i.e., we treated UTF-16 as UCS-2).

04166cb shared: utf8 - support decoding the full utf16
src/shared/utf8.c | 36 +++++++++++++++++++++++++++++++++---
src/shared/utf8.h | 12 ++++++++++++
src/test/test-utf8.c | 13 +++++++++++++
3 files changed, 58 insertions(+), 3 deletions(-)

Upstream: github.com


  • Share