X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20090516155216.GV21324@calimero.vinschen.de> References: <3f0ad08d0905160756w5a1a4751sf687351097c6a406 AT mail DOT gmail DOT com> <20090516155216 DOT GV21324 AT calimero DOT vinschen DOT de> Date: Thu, 28 May 2009 01:10:41 +0900 Message-ID: <3f0ad08d0905270910h5d9fe546g20791db7bee3c345@mail.gmail.com> Subject: Re: [1.7] wprintf is broken? From: IWAMURO Motonori To: newlib AT sourceware DOT org, cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Sorry, my report is not correct. Because we must mix neither wide-character I/O nor multibyte-character I/O in the specification. (see the manual of fwide() function) 2009/5/17 Corinna Vinschen : > On May 16 23:56, IWAMURO Motonori wrote: >> Hi. >> >> wprintf is broken? >> >> I compile & run the following source: >> >> #include >> #include >> #include >> int main(void) { >> =A0 setlocale(LC_ALL, "en_US.UTF-8"); >> =A0 wprintf(L"%ls\n", L"Test\n"); >> =A0 printf("Test\n"); >> =A0 return 0; >> } >> >> Result text: >> http://vmi.jp/tmp/wprintf-is-broken.txt > > Works for me: > > =A0$ ./wp | od -c > =A00000000 =A0 T =A0 e =A0 s =A0 t =A0\n =A0\n =A0 T =A0 e =A0 s =A0 t = =A0\n > =A00000013 > > > Corinna > > -- > Corinna Vinschen =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Please, send mails re= garding Cygwin to > Cygwin Project Co-Leader =A0 =A0 =A0 =A0 =A0cygwin AT cygwin DOT com > Red Hat > > -- > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > > --=20 IWAMURO Motnori -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/