--- xcb/xcb.c 2010/09/27 14:27:49 1.4 +++ xcb/xcb.c 2022/01/02 20:23:21 1.5 @@ -321,7 +321,7 @@ &after, &pt.value) != Success || !pt.nitems) return strdup (""); - if (pt.nitems) + if (pt.nitems && pt.format == 8) { (force_mb ? XmbTextPropertyToTextList : Xutf8TextPropertyToTextList) (dpy, &pt, &list, &count);