I'm trying to sort out everything concerning the way Unicode works in Windows console applications. Why doesn't this simple program work?
int wmain(int argc, const wchar_t* const argv)
for (int i = 1; i < argc; ++i)
std::wcout << argv[i] << std::endl;
>cl /EHsc /D _UNICODE /D UNICODE /Zc:wchar_t test.cpp
> test.exe 1 2 3 abc абв
> test.exe Sæter
> test.exe абв Sæter