This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: wprintf anybody?
On Thu, Apr 10, 2008 at 11:22:18AM +0200, Corinna Vinschen wrote:
>On Apr 9 14:34, Brian Dessent wrote:
>> Corinna Vinschen wrote:
>>
>> > while we're at it, multibyte/wide chars and all, I just found that it
>> > would be helpful to have the wprintf family of functions, and possibly
>> > related stuff like fputwc, fputws, fgetwc, fgetws and fwide. Is anybody
>> > here interested in adding this to Cygwin or, FWIW, newlib?
>>
>> I had a tentative spot on my TODO to simply audit Cygwin+newlib for the
>> current state of C99 wchar_t support, and make a list of what all is
>> missing. I have a feeling it's a lot, but I agree that low hanging
>
>Looking into newlib, I don't think it's really a lot. It's more about
>complexity. Most of the usual string manipulation functions exist.
>
>What's missing is a real LC_COLLATE implementation, so that wcscoll
>and wcsxfrm (and, FWIW, strcoll and strxfrm) are not just simple cmp
>and cpy functions.
>
>What's missing are the float to string functions wcstof, wcstod,
>wcstold(*).
>
>And what's missing is wchar_t IO like fputwc, fgetws and wprintf.
>
>I think that's it, basically. Are you going to take a stab at it?
Can't we just leverage these functions from FreeBSD?
cgf