This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[1.7] wprintf is broken?
- From: IWAMURO Motonori <deenheart at gmail dot com>
- To: cygwin at cygwin dot com, newlib at sourceware dot org
- Date: Sat, 16 May 2009 23:56:47 +0900
- Subject: [1.7] wprintf is broken?
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
--
IWAMURO Motnori <http://vmi.jp/>