From 2bb4c7e384c31de4727f1330da3f4de2f0bb7784 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 22 Dec 2014 00:58:26 +0100 Subject: shared: utf8 - support ucs4 -> utf8 Originally we only supported ucs2, so move the ucs4 version from libsystemd-terminal to shared and use that everywhere. --- src/test/test-json.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/test-json.c') diff --git a/src/test/test-json.c b/src/test/test-json.c index 00768358bf..e53e8ed50f 100644 --- a/src/test/test-json.c +++ b/src/test/test-json.c @@ -98,6 +98,7 @@ int main(int argc, char *argv[]) { test_one("{\"foo\" : [true, false]}", JSON_OBJECT_OPEN, JSON_STRING, "foo", JSON_COLON, JSON_ARRAY_OPEN, JSON_BOOLEAN, true, JSON_COMMA, JSON_BOOLEAN, false, JSON_ARRAY_CLOSE, JSON_OBJECT_CLOSE, JSON_END); test_one("\"\xef\xbf\xbd\"", JSON_STRING, "\xef\xbf\xbd", JSON_END); test_one("\"\\ufffd\"", JSON_STRING, "\xef\xbf\xbd", JSON_END); + test_one("\"\\uf\"", -EINVAL); return 0; } -- cgit v1.2.3-54-g00ecf