I was able to get _wopen() to work in
mingw by modifying that program to use a wchar_t string,
How? Did you convert the UTF-8 string or how did you provide a
wchar_t string? Which encoding?
Maybe with L"string" syntax? Yes, that would be UTF-16 encoded and
work with _wopen().
While that worked with mingw, it didn't with VS for some reason,
not sure why.
Might have been a missing compiler flag; I just used "CL /TP
foo.cxx" to build it,
but perhaps VS needs some coercion to comprehend inline utf8.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.