This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Wide character conversion
- From: John Love-Jensen <eljay at adobe dot com>
- To: romyd misc <romydmisc at gmail dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 08 Jun 2006 08:46:53 -0500
- Subject: Re: Wide character conversion
Hi Romy,
You are using "%c" to printf a wchar_t. Is that intentional? Shouldn't you
use a "%lc"?
It appears that the routine relies on sizeof(wchar_t) == 2. Does your
sizeof(wchar_t) == 2 on your platform?
You are using "%s" to printf a wchar_t*. Is that intentional? Shouldn't
you use a "%ls"?
HTH,
--Eljay