Russell Shaw rjshaw at netspace.net.au
Sat Sep 17 02:46:37 PDT 2005

The ICCCM is a bit unclear on what text encodings to use,
such as for XSetWMName().


void XSetWMName(display, w, text_prop)
       Display *display;
       Window w;
       XTextProperty *text_prop;


ICCCM 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 characters
in the language according to the X servers locale?

What encoding should i use for XTextProperty?


typedef struct {
	unsigned char *value;	/* property data */
	Atom encoding;		/* type of property */
	int format;		/* 8, 16, or 32 */
	unsigned long nitems;	/* number of items in value */
} XTextProperty;

typedef enum {
	XStringStyle,		/* STRING */
	XCompoundTextStyle,	/* COMPOUND_TEXT */
	XTextStyle,		/* text in owner's encoding (current locale) */
	XStdICCTextStyle	/* STRING, else COMPOUND_TEXT */
} XICCEncodingStyle;
xorg mailing list
xorg at lists.freedesktop.org

More information about the xorg mailing list