projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62bcd7b
)
Normalize all incoming UTF-8 to NFC
author
Mikael Magnusson
<mikachu@gmail.com>
Thu, 13 Aug 2015 01:58:08 +0000
(
03:58
+0200)
committer
Mikael Magnusson
<mikachu@gmail.com>
Mon, 20 Mar 2023 06:28:01 +0000
(07:28 +0100)
obt/prop.c
patch
|
blob
|
history
diff --git
a/obt/prop.c
b/obt/prop.c
index efcfa21ddfc9a888e754b1e2aaf741c3c73b1bee..4991179e1426d8745d09ea78006dfbc054ddbc10 100644
(file)
--- 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