On Fri, Jan 25, 2002 at 12:29:20AM +0300, Alexander Kotelnikov wrote: > >>>>> On Thu, 24 Jan 2002 16:01:14 +0100 > >>>>> "Olivier" == Olivier Chapuis <[EMAIL PROTECTED]> wrote: > Olivier> (the !I18N_MB one) and the corresponding code in events.c. > Olivier> To filter the xterm titles it is enough to use > Olivier> XmbTextPropertyToTextList > Olivier> The solution of the filtering problems was simple! > Olivier> > Olivier> Do I have to apply such changes to 2.4.5? > > Suddenly I said not thh thing that I wanted to say. Of course compound > text should be parsed. But is you get a property with 8-bit value and > type string it should be typed as iso8859, so if a wrong program > supplies cyrillic title in western-european characters diapason this > patch will probably break it. This could be avoided by checking if we > have sting or compounded string, but you should know, this check will > be a dirty hack. >
I am not sure to understand the objection. With !I18N_MB the users will have to use the Font and IconFont Styles in the good way. Moreover, it is easy (and not a bad hack) to check if we have a component property: if (GetWMName(dpy, window, &text_prop) != 0) { if (text_prop.value) { if (text_prop.encoding == XA_STRING) { /* STRING encoding: take the string as it is */ } else { /* COMPOUND_TEXT: needs convertion */ } } Olivier -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]