diff options
author | Tom Gundersen <teg@jklm.no> | 2015-02-18 14:33:50 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-02-18 15:23:23 +0100 |
commit | 502184de0f95d3a124d4d4c77ae7a88747a0fac2 (patch) | |
tree | 74eafc30c12e5c34f56d8cfe57801ded81ac92b8 /src | |
parent | e7dd673d1e0acfe5420599588c559fd85a3a9e8f (diff) |
test: utf8 - fix utf16 tests on BE machines
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test-utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-utf8.c b/src/test/test-utf8.c index befa385754..346f8524c6 100644 --- a/src/test/test-utf8.c +++ b/src/test/test-utf8.c @@ -95,7 +95,7 @@ static void test_utf8_escaping_printable(void) { static void test_utf16_to_utf8(void) { char *a = NULL; - const uint16_t utf16[] = { 'a', 0xd800, 'b', 0xdc00, 'c', 0xd801, 0xdc37 }; + const uint16_t utf16[] = { htole16('a'), htole16(0xd800), htole16('b'), htole16(0xdc00), htole16('c'), htole16(0xd801), htole16(0xdc37) }; const char utf8[] = { 'a', 'b', 'c', 0xf0, 0x90, 0x90, 0xb7, 0 }; a = utf16_to_utf8(utf16, 14); |