I've solved the problem for my case (UTF-8 locale), simply by having text properties go through XmbTextPropertyToTextList() even when the type is STRING, instead of just copying the bytes. It simply converts the ISO-8859-1 (which is the normal encoding for STRING type text properties) string to UTF-8.
Please extract the latest revision (f2abcc859cca628f2b368c51e6451063743bce8d) and try it out. I'm especially interested in how it works with non-UTF-8 locales. Cheers, Richard ----- Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte [EMAIL PROTECTED] http://richard.levitte.org/ "When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." -- C.S. Lewis
