mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025367: IGES and BRep persistence - support unicode file names on Windows
OSD_OpenFile.hxx header is created for using in file open operations with Unicode names. Fix for STEP files reading. Adding test cases for issue 25367 Update test case for issue 25364 Update test cases due to improvements
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <gp.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_ExtendedString.hxx>
|
||||
#include <OSD_OpenFile.hxx>
|
||||
#include <fstream>
|
||||
#include <algorithm>
|
||||
|
||||
@@ -322,12 +323,7 @@ bool Image_AlienPixMap::savePPM (const TCollection_AsciiString& theFileName) con
|
||||
}
|
||||
|
||||
// Open file
|
||||
#ifdef _WIN32
|
||||
const TCollection_ExtendedString aFileNameW (theFileName.ToCString(), Standard_True);
|
||||
FILE* aFile = _wfopen ((const wchar_t* )aFileNameW.ToExtString(), L"wb");
|
||||
#else
|
||||
FILE* aFile = fopen (theFileName.ToCString(), "wb");
|
||||
#endif
|
||||
FILE* aFile = OSD_OpenFile (theFileName.ToCString(), "wb");
|
||||
if (aFile == NULL)
|
||||
{
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user