[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode characters in window title
From: |
Fred Kiefer |
Subject: |
Re: Unicode characters in window title |
Date: |
Sat, 10 Dec 2005 15:18:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921 |
Adam Fedor wrote:
> On 2005-12-09 11:03:06 -0700 Pablo Di Noto <pdinoto@conectividad.com.ar>
> wrote:
>
>> Hi,
>>
>>> 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.
Fred