Save X11 window title regardless of unconvertible characters
commitbd777335e08e114cabc47351afead8ce238084bc
authorKalle Olavi Niemitalo <kon@iki.fi>
Tue, 12 Apr 2011 21:18:32 +0000 (13 00:18 +0300)
committerKalle Olavi Niemitalo <Kalle@Pulska.kon.iki.fi>
Sun, 15 May 2011 11:03:53 +0000 (15 14:03 +0300)
treedec2e579f355398bd0103a771388ce3feafc5705
parentb178ee6cb6d8510a148da797389e661eefdfc819
Save X11 window title regardless of unconvertible characters

If Xutf8TextPropertyToTextList or XmbTextPropertyToTextList returns a
positive number, that means some characters were unconvertible and
have been replaced with XDefaultString().  Use the resulting string
even in that case, as if the function had returned Success.
The previous version ignored the string and didn't even free it.
(cherry picked from commit d2cf6912b9c1ddf8e608d3a0f663ffc7a3fec1c2)
src/osdep/osdep.c