Wide character conversion

John Love-Jensen eljay@adobe.com
Thu Jun 8 14:13:00 GMT 2006


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



More information about the Gcc-help mailing list