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/json.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/shared/json.c')
-rw-r--r-- | src/shared/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/json.c b/src/shared/json.c index f1495e99c8..47f801c858 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -150,7 +150,7 @@ static int json_parse_string(const char **p, char **ret) { if (!GREEDY_REALLOC(s, allocated, n + 4)) return -ENOMEM; - n += utf8_encode_unichar(x, s + n); + n += utf8_encode_unichar(s + n, x); c += 5; continue; } else |