On Thursday, February 18, 2021 at 1:20:29 AM UTC+1 er...@seriss.com wrote:
It's interesting to me there's no warning about our use of open()
in the Fl_WinAPI_System_Driver.cxx
code:
int Fl_WinAPI_System_Driver::open_ext(const char *fnam, int
binary, int oflags, int pmode) {
if (oflags == 0) oflags = _O_RDONLY;
oflags |= (binary ? _O_BINARY : _O_TEXT);
return open(fnam, oflags, pmode);
}
Caution: the red statement above calls another member function of class Fl_WinAPI_System_Driver :
int Fl_WinAPI_System_Driver::open(const char *fnam, int oflags, int pmode) {
utf8_to_wchar(fnam, wbuf);
if (pmode == -1) return _wopen(wbuf, oflags);
else return _wopen(wbuf, oflags, pmode);
}
which goes into the OS with _wopen().