On Sun, Jan 11, 2009 at 02:15:27AM +0900, Tetsuya KOBAYASHI wrote: > When I launched mrxvt with xft option and Japanese proportional font > as xftmFont on my GNU/Linux amd64 machine, Japanese strings were > displayed quite strangely (the n-th character with n-fold vision), and > I tracked down that, in function rxvt_scr_draw_string of src/screen.c, > variables of type int* are cast into type size_t* and passed to iconv, > where on my 64-bit machine sizeof(int) == (size_t)4 and sizeof(size_t) > == (size_t)8, causing cast of pointers into those to larger data type. > > I attach with this message a patch to fix this problem (declare buflen > and newlen of type size_t instead of int). Also I remove explicit cast > of arguments for iconv, which I suppose has been intended to suppress > compiler warning.
I included your patch, thanks for your help. GI -- 100 THINGS I'D DO IF I EVER BECAME AN EVIL OVERLORD 38. If an enemy I have just killed has a younger sibling or offspring anywhere, I will find them and have them killed immediately, instead of waiting for them to grow up harboring feelings of vengeance towards me in my old age.
pgp5YLkCukPke.pgp
Description: PGP signature
------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB
_______________________________________________ Materm-devel mailing list Materm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/materm-devel mrxvt home page: http://materm.sourceforge.net