This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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/>

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]