X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sat, 16 May 2009 17:52:16 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com, newlib AT sourceware DOT org Subject: Re: [1.7] wprintf is broken? Message-ID: <20090516155216.GV21324@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, newlib AT sourceware DOT org References: <3f0ad08d0905160756w5a1a4751sf687351097c6a406 AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f0ad08d0905160756w5a1a4751sf687351097c6a406@mail.gmail.com> User-Agent: Mutt/1.5.19 (2009-02-20) 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 On May 16 23:56, IWAMURO Motonori wrote: > Hi. > > wprintf is broken? > > I compile & run the following source: > > #include > #include > #include > 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 -- 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/