From 97a5e66a95d57bba340a93c96dd394962b42c20e Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 13 Aug 2015 03:58:08 +0200 Subject: [PATCH] Normalize all incoming UTF-8 to NFC --- obt/prop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obt/prop.c b/obt/prop.c index efcfa21d..4991179e 100644 --- a/obt/prop.c +++ b/obt/prop.c @@ -408,7 +408,7 @@ static void* convert_text_property(XTextProperty *tprop, const gchar *end; /* the first byte past the valid data */ g_utf8_validate(retlist[i], -1, &end); - retlist[i] = g_strndup(retlist[i], end-retlist[i]); + retlist[i] = g_utf8_normalize(retlist[i], end-retlist[i], G_NORMALIZE_NFC); } else if (encoding == LOCALE) { gsize nvalid; /* the number of valid bytes at the front of the -- 2.34.1