XSetWMName

Russell Shaw rjshaw at netspace.net.au
Sat Sep 17 21:59:42 PDT 2005


Owen Taylor wrote:
> On Sat, 2005-09-17 at 19:38 +1000, Russell Shaw wrote:
> 
>>Hi,
>>The ICCCM is a bit unclear on what text encodings to use,
>>such as for XSetWMName().
>>
>>http://www.x.org/X11R6.8.1/docs/ICCCM/icccm.pdf
>>
>>void XSetWMName(display, w, text_prop)
>>       Display *display;
>>       Window w;
>>       XTextProperty *text_prop;
>>
>>http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/XSetWMName.html
>>
>>ICCCM 4.1.2.1 says it is an "uninterpreted" string. Does this mean it should
>>be sent to the X server as 8-bit english ascii, or 32-bit unicode?
> 
> Maybe read the next paragraph?
> 
>  The encoding used for this string (and all other uninterpreted string
>  properties) is implied by the type of the property. The type atoms to be
>  used for this purpose are described in section 2.7.1.
> 
> And 2.7.1 in fact defines STRING and COMPOUND_TEXT.

Hi,
In 2.7.1, it says to see the "compound text encoding", which is defined
nowhere in the document. Only after finding:
http://www.x.org/X11R6.8.1/docs/CTEXT/ctext.pdf
did i find it was about encoding of multilingual text.
There also seems to be a new STRING_UTF8 format.



More information about the xorg mailing list