Simple task: I want to read a file which has a non-ascii file name.
On linux and MacOS, I simply pass the file name as a UTF-8 encoded string to the fstream constructor. On windows this fails.
As I learned from this question, windows simply does not support utf-8 filenames. However, it provides an own non-standard open method that takes a utf-16 wchar_t*. Thus, I could simply convert my string to utf-16 wstring and be fine. However, in the MinGW standard library, that wchar_t* open method of fstream simply does not exist.
So, how can I open a non-ascii file name on MinGW?