net@tub.UUCP (Oliver Laumann) (02/02/90)
XStringListToTextProperty() doesn't seem to return a sensible result
when it is invoked with an empty string list. The following program
prints "status 1 nitems -1". I think it should print "status 1 nitems 0".
Am I missing something?
main () {
XTextProperty p;
int status;
status = XStringListToTextProperty ((char **)0, 0, &p);
printf ("status %d nitems %d\n", status, p.nitems);
}
Regards,
--
Oliver Laumann net@TUB.BITNET net@tub.cs.tu-berlin.de net@tub.UUCP
jim@EXPO.LCS.MIT.EDU (Jim Fulton) (02/02/90)
XStringListToTextProperty() doesn't seem to return a sensible result when it is invoked with an empty string list. Hmm, that one seemed to have slipped by the spec. It should either treat NULL as bogus input and return an invalid status, or else treat it as an alias for an empty string. Unfortunately, it is doing neither. Similarly for XTextPropertyToStringList. I've forwarded a bug report.