> > 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.