This code completely works in GCC with code blocks, it can get the correct output.
But in Pelles C, the output is incorrect, just a "?".
Pelles C supports UTF-16LE source code, so I think the compiler supports UNICODE
But why I cannot get the correct output?
Is this code problem, or the compiler problem?
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <wchar.h>
int main()
{
wchar_t* a = L"α";
fflush(stdout);
_setmode(_fileno(stdout), 0x20000); // set console mode to unicode
wprintf(L"%s", a);
return 0;
}