From 5511183c9ce042a33933d9b4cf84147d598552f7 Mon Sep 17 00:00:00 2001 From: Abel Cheung Date: Thu, 9 May 2019 09:26:08 +0800 Subject: [PATCH] Fix for big endian in char conversion --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index f75034c..8c9e15c 100644 --- a/src/utils.c +++ b/src/utils.c @@ -451,7 +451,7 @@ _advance_char (size_t sz, case 2: { - gunichar2 c = *(gunichar2 *) (*in_str); + guint16 c = GUINT16_FROM_LE (*(guint16 *) (*in_str)); repl = g_strdup_printf (tmpl, c); } break;