Fred Kiefer wrote: > Adam Fedor wrote: >> On 2005-12-09 11:03:06 -0700 Pablo Di Noto <[EMAIL PROTECTED]> wrote: >> >>>> I am doing setTitle: on a window with a string containing unicode >>>> characters (ä,ö,ü). I only see the title up to the non-ascii character, >>>> the >>>> rest is truncated. Should this work or does GNUstep not support unicode >>>> strings in window titles yet? I encounter this problem on Solaris 10 with >>>> Window Maker 0.9. >>> I reported something very similar as a Gorm bug on savanah (See >>> http://savannah.gnu.org/bugs/?func=detailitem&item_id=15029 ) >>> >> Currently, window titles get converted to ascii (lossyCString) before being >> set. WM can certainly handle unicode now (it couldn't back in the day when I >> wrote that). See >> >> back/Source/x11/XGWindowServer.m(-titlewindow::) >> >> Should be easy enough to fix, if some one wants to do it ;-) >> > > I already had looked into fixing this yesterday. It really isn't too > hard, for what Andreas wants we could just convert the string to Latin1, > which window manages need to support, instead of using lossyCString. But > I would prefer an UTF8 solution, which need a bit more thinking and > currently the weather is so bright over here. >
Hi Andreas, I have bad news for you. I wrote a bit of code here and already submitted it to CVS. This code uses Xutf8TextListToTextProperty, an XFree86 extension, to set the window title as an UTF8 string. Now this extension wont be present on your Solaris machine, that's why it is bad news for you. The behaviour of GNUstep will be alright for the rest of us. What can you do now? First check your GNUstep default String encoding. This currently gets used for the conversion of the window title and it does not seem to match what your window manager supports. Second you could have a go at implementing an alternate way of setting the window title with either Xmb or Xwc. I would have tried myself, but I never did get my head around these concepts. Cheers Fred _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
