Hello.

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.


-- 
Tetsuya KOBAYASHI <tk...@sodan.ecc.u-tokyo.ac.jp>

Attachment: mrxvt05b-fix-type-of-iconv-arguments.patch
Description: Binary data

Attachment: pgpJlcIrK0L3U.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

Reply via email to