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/shared/utf8.h | |
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/shared/utf8.h')
-rw-r--r-- | src/shared/utf8.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/utf8.h b/src/shared/utf8.h index dcf8588d32..3d5a4c3a9c 100644 --- a/src/shared/utf8.h +++ b/src/shared/utf8.h @@ -36,7 +36,7 @@ bool utf8_is_printable_newline(const char* str, size_t length, bool newline) _pu char *utf8_escape_invalid(const char *s); char *utf8_escape_non_printable(const char *str); -int utf8_encode_unichar(uint16_t c, char *p); +size_t utf8_encode_unichar(char *out_utf8, uint32_t g); char *utf16_to_utf8(const void *s, size_t length); int utf8_encoded_valid_unichar(const char *str); |