diff -Nru x11-utils-7.6+4ubuntu0.1/debian/changelog x11-utils-7.6+4ubuntu0.2/debian/changelog --- x11-utils-7.6+4ubuntu0.1/debian/changelog 2012-08-06 23:06:10.000000000 +0000 +++ x11-utils-7.6+4ubuntu0.2/debian/changelog 2015-06-11 07:47:15.000000000 +0000 @@ -1,3 +1,11 @@ +x11-utils (7.6+4ubuntu0.2) precise-proposed; urgency=medium + + * Add 101_xprop_bad_format_character_utf8_string.patch: Fix xprop + bad format character error whn using UTF-8 strings. + (LP: #1463663) + + -- Alberto Milone Thu, 11 Jun 2015 09:45:25 +0200 + x11-utils (7.6+4ubuntu0.1) precise-proposed; urgency=low * Add 100-xwininfo-bad-screen.patch: Fix wininfo segfault when called diff -Nru x11-utils-7.6+4ubuntu0.1/debian/patches/101_xprop_bad_format_character_utf8_string.patch x11-utils-7.6+4ubuntu0.2/debian/patches/101_xprop_bad_format_character_utf8_string.patch --- x11-utils-7.6+4ubuntu0.1/debian/patches/101_xprop_bad_format_character_utf8_string.patch 1970-01-01 00:00:00.000000000 +0000 +++ x11-utils-7.6+4ubuntu0.2/debian/patches/101_xprop_bad_format_character_utf8_string.patch 2015-06-11 07:41:10.000000000 +0000 @@ -0,0 +1,34 @@ +From b9d699079f54f1665a5460c2212706e2d2af8a90 Mon Sep 17 00:00:00 2001 +From: lolilolicon +Date: Tue, 10 Jan 2012 23:39:04 -0500 +Subject: [PATCH 1/1] Enable setting property of type UTF8_STRING. + +Fix "bad format character: u" error for format '8u', e.g.: + xprop -root -f _NET_WM_NAME 8u -set _NET_WM_NAME LG3D + +Signed-off-by: James Cloos +--- + xprop/xprop.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/xprop/xprop.c b/xprop/xprop.c +index 4c4c702..2dbacb5 100644 +--- a/xprop/xprop.c ++++ b/xprop/xprop.c +@@ -1629,6 +1629,13 @@ Set_Property (Display *dpy, Window w, const char *propname, const char *value) + data = (unsigned char *) value; + nelements = strlen(value); + break; ++ case 'u': ++ if (size != 8) ++ Fatal_Error("can't use format character 'u' with any size except 8."); ++ type = XInternAtom(dpy, "UTF8_STRING", False); ++ data = (unsigned char *) value; ++ nelements = strlen(value); ++ break; + case 't': { + XTextProperty textprop; + if (size != 8) +-- +1.9.1 + diff -Nru x11-utils-7.6+4ubuntu0.1/debian/patches/series x11-utils-7.6+4ubuntu0.2/debian/patches/series --- x11-utils-7.6+4ubuntu0.1/debian/patches/series 2012-08-06 23:05:27.000000000 +0000 +++ x11-utils-7.6+4ubuntu0.2/debian/patches/series 2015-06-11 07:45:00.000000000 +0000 @@ -1 +1,2 @@ 100-xwininfo-bad-screen.patch +101_xprop_bad_format_character_utf8_string.patch