shared: utf8 - support ucs4 -> utf8

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

Originally we only supported ucs2, so move the ucs4 version from libsystemd-terminal to shared and use that everywhere.

2bb4c7e shared: utf8 - support ucs4 -> utf8
src/libsystemd-terminal/subterm.c | 5 +--
src/libsystemd-terminal/term-parser.c | 43 -----------------------
src/libsystemd-terminal/term-screen.c | 3 +-
src/libsystemd-terminal/term.h | 1 -
src/libsystemd-terminal/test-term-parser.c | 3 +-
src/shared/json.c | 2 +-
src/shared/utf8.c | 51 +++++++++++++++++++++-------
src/shared/utf8.h | 2 +-
src/test/test-json.c | 1 +
9 files changed, 48 insertions(+), 63 deletions(-)

Upstream: github.com


  • Share