diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-22 00:58:26 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-22 20:26:53 +0100 |
commit | 2bb4c7e384c31de4727f1330da3f4de2f0bb7784 (patch) | |
tree | e6ca2bf55af1be1c20066533ef38f686fc40fc57 /src/libsystemd-terminal/test-term-parser.c | |
parent | 856d6e09887730f115e43faf9577b479f2beb3c4 (diff) |
shared: utf8 - support ucs4 -> utf8
Originally we only supported ucs2, so move the ucs4 version from libsystemd-terminal to shared
and use that everywhere.
Diffstat (limited to 'src/libsystemd-terminal/test-term-parser.c')
-rw-r--r-- | src/libsystemd-terminal/test-term-parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-terminal/test-term-parser.c b/src/libsystemd-terminal/test-term-parser.c index e8d5dcfbf2..e22614d06d 100644 --- a/src/libsystemd-terminal/test-term-parser.c +++ b/src/libsystemd-terminal/test-term-parser.c @@ -30,6 +30,7 @@ #include "macro.h" #include "term-internal.h" #include "util.h" +#include "utf8.h" static void test_term_utf8_invalid(void) { term_utf8 p = { }; @@ -74,7 +75,7 @@ static void test_term_utf8_range(void) { /* Convert all ucs-4 chars to utf-8 and back */ for (i = 0; i < 0x10FFFF; ++i) { - ulen = term_utf8_encode(u8, i); + ulen = utf8_encode_unichar(u8, i); if (!ulen) continue; |