Re: Wide character conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux