This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: %S %C vfprintf contribution
- From: "Artem B. Bityuckiy" <abitytsky at softminecorp dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 31 Oct 2003 10:49:20 +0300
- Subject: Re: %S %C vfprintf contribution
- Organization: SoftMine Corporation
- Reply-to: abitytsky at softminecorp dot com
Hello.
Nicholas Wourms wrote:
> Artem B. Bityuckiy wrote:
>
>> Hello.
>>
>> Here is the patch that makes vfprintf (and hence, all other
>> vfprintf-based Xprintf functions) understand ISO C 90 %S (same as %ls)
>> and %C (same as %lc) format placeholders. Please, review it and give
>> us know if something is wrong.
>>
>> This is tested a little bit- it works and it seems should work with
>> any locale if wcrtomb and wcsrtomb functions work.
>>
>
> I believe the preferred patch type is unidiff or `diff -up`.
OK, here is the patch to vfprintf.c produced by diff -up.
>
> Cheers,
> Nicholas
>
Initially, we've added these changes to Newlib-1.11.0. They was tested
with Newlib-1.11.0 too. But then I've copy changes to Newlib from CVS.
vfprintf.c from CVS differs from Newlib-1.11.0's vfprintf.c. I didn't
test (even compile) Newlib from CVS with these patch, but it must work.
Thanks.
--
Best regards,
Artem B. Bityuckiy
SoftMine Corporation, Software Engineer
Tel.: +7(812)329-67-44, +7(812)329-67-45
Mobile: +79112449030
E-mail: abitytsky@softminecorp.com
Web: www.softminecorp.com