I tried to output contents to a file
std::locale::global(std::locale());
std::wofstream file(outfilename , std::wofstream::binary);
for (const auto & j : grid[0]) {
try {
std::wcout << L"String in WideString " << decoder->decode(j) << std::endl;
file << decoder->decode(j) << std::endl;
}
catch (std::exception& e) {
std::cout << e.what() << std::endl;
}
}
wcout stops outputting anything ( even "String in WideString" is not outputted ) after some amount of calls,
(I debugged it and it executes wcout like supposed to, after it stopped outputting text)
wofstream also stops outputting after the same amount of calls.
This is the first time I used the widestrings, streams and couts.
Thanks for looking into this.