This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [1.7] wprintf is broken?
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com, newlib at sourceware dot org
- Date: Sat, 16 May 2009 17:52:16 +0200
- Subject: Re: [1.7] wprintf is broken?
- References: <3f0ad08d0905160756w5a1a4751sf687351097c6a406@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
On May 16 23:56, IWAMURO Motonori wrote:
> Hi.
>
> wprintf is broken?
>
> I compile & run the following source:
>
> #include <stdio.h>
> #include <locale.h>
> #include <wchar.h>
> int main(void) {
> setlocale(LC_ALL, "en_US.UTF-8");
> wprintf(L"%ls\n", L"Test\n");
> printf("Test\n");
> return 0;
> }
>
> Result text:
> http://vmi.jp/tmp/wprintf-is-broken.txt
Works for me:
$ ./wp | od -c
0000000 T e s t \n \n T e s t \n
0000013
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat