This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]