chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix service file to match installed elogind binary location
[elogind.git]
/
src
/
test
/
test-utf8.c
diff --git
a/src/test/test-utf8.c
b/src/test/test-utf8.c
index befa38575413be679cad5e2ec151e911a2549810..1ce5a5a24d0b18fd1ad366c36cd3cb7f023c06c4 100644
(file)
--- a/
src/test/test-utf8.c
+++ b/
src/test/test-utf8.c
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-19,6
+17,8
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include "alloc-util.h"
+#include "string-util.h"
#include "utf8.h"
#include "util.h"
#include "utf8.h"
#include "util.h"
@@
-95,7
+95,7
@@
static void test_utf8_escaping_printable(void) {
static void test_utf16_to_utf8(void) {
char *a = NULL;
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);
const char utf8[] = { 'a', 'b', 'c', 0xf0, 0x90, 0x90, 0xb7, 0 };
a = utf16_to_utf8(utf16, 14);