Re: [dev] [dwm] NULL byte in WM_NAME
> > The current behaviour (NUL termination) seems fine to me.
>
> I think it is too, although it raises some kind of ambiguity in the X
> data property handling.
> Maybe the well-written Xlib documentation can shed a light for us here
> (huhu).
Ok, actually in Xutf8TextPropertyToTextList manpage, we can read
“Multiple elements of the property (for example, the strings in a
disjoint text selection) are separated by a null byte. The contents of
the property are not required to be null-terminated; any terminating
null should not be included in text_prop.nitems.”
So the nelements reducing patch seems accurate.
Received on Wed Dec 27 2017 - 11:18:21 CET
This archive was generated by hypermail 2.3.0
: Wed Dec 27 2017 - 11:24:22 CET