Hi,
we open two files on reading and the other writing with fopen with mingw64 under windows.this is in a Qt software so we convert the path from QString to local8bit.But for two specials characters on french windows with french keyboards fopen(szFile,wb) returns 0, for 'ç' and for '°' so the fopen couldn't open the file for writing.is there options to fopen from mingw64 to open files names as utf8 for example because fopen does'nt accept such encoding by default ?
or should we use _wfopen ? because we need that the first argument supports special characters in its name
OK this problem is solved thanks to _wfopen but we have another problem with this function.it returns 0 on pathnames longer than 260 characters
Last edit: stephane 2017-02-10
I think the long pathnames are only allowed on windows 10 and Idon't know if the "\?\" prefix is usable with mingw-w64 win32 api....
It seems to work with this prefix on windows 10.not already tested on other windows versions
you can close this ticket....my problem is solved...