Hi I'm having some trouble getting imlib2 to draw UTF8 characters. The easiest way to show this is to use feh on an image with some UTF8 characters in it's name and then enabe "draw filename" in the menu. I have two systems, one is a gentoo machine and the other is a debian machine. On the gentoo if the filename is something like "testætest.jpg", feh will draw test as the filename. On the debian machine what will happen is that feh will draw test[]test, where [] is an empty box.
I have traced it down to line 317 in src/font_draw.c. replacing: if (gl == 0) break; with: if (gl == 0) { printf("got 0 from imlib_font_utf8_get_next in "); printf("%c", text[chr]); printf("\n"); break; } will print: got 0 from imlib_font_utf8_get_next in æ. Looking at the comment for imlib_font_utf8_get_next() it will only print 0 if the char is an invalid UTF8 character. Breaking after it got 0 from imlib_font_utf8_get_next is the reason why it will fail to display anymore of the string. I have traced it futher and it appears to happen in line 149 in src/font_main.c. if ((d2 & 0xc0) != 0x80 || (d3 & 0xc0) != 0x80) return 0; The wierd thing is that I also get unicode errors in nautilus when I renamed the file in the console with mv. Running LANG="da_DK" nautilus cured this and enabled me to rename it to something with æ in the name but feh still fails. Starting feh with LANG="da_DK" also doesn't help. This problem happens with both danish chars: æ,ø,å and german umlauts ä, ö etc. Does anyone know what I can try next? Thanx for any help. I think imlib2 is great. PS: I'm not subscribed so please CC me if you reply. -- Anders Rune Jensen http://www.gnulinux.dk/~arj/ PGP/GnuPG key: 1024D/62C2D7F0 @ pgp.mit.edu Fingerprint: 6A03 907E 92E1 47EB 4EAB 76B6 068A ACD1 62C2 D7F0 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ enlightenment-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel