On Mon, 24 Apr 2006 01:08:12 +0200
"Anselm R. Garbe" <garbeam_AT_wmii.de> wrote:
> On Sun, Apr 23, 2006 at 11:20:24PM +0200, Anselm R. Garbe wrote:
> > Thus, don't expect UTF8 support in wmii-3.
>
> In hg tip I proceeded to give UTF8 support a try, I'd like to
> know if the current version provides usable results for anyone.
Doesn't work for me. I didn't forgot to change the LANG :)
diff -Ncr wmii-20060414/liblitz/draw.c wmii-20060414_new/liblitz/draw.c
*** wmii-20060414/liblitz/draw.c 2006-04-14 15:03:19.000000000 +0400
--- wmii-20060414_new/liblitz/draw.c 2006-04-22 23:24:25.000000000 +0400
***************
*** 102,107 ****
--- 102,119 ----
if (!d->data)
return;
+ /* converting COMPOUND_TEXT to normal string in very quick, and very dirty way. */
+ unsigned char *dst=d->data, *src=dst;
+ while(*src){
+ if( src[0]==0x1b && src[1]==0x25 && src[2]==0x2f && (src[3]&0xf0)==0x30){
+ src+=6;
+ while(*src && *src!=0x02)src++;
+ src++;
+ }
+ *dst++ = *src++;
+ }
+ *dst=0;
+
len = strlen(d->data);
cext_strlcpy(text, d->data, sizeof(text));
XSetFont(dpy, d->gc, d->font->fid);
this works (for me) but it's only a hack. (code not mine)
Received on Tue Apr 25 2006 - 00:24:31 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:03:27 UTC