mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +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:
@@ -41,6 +41,7 @@
|
||||
#include <TObj_TModel.hxx>
|
||||
#include <TObj_TNameContainer.hxx>
|
||||
#include <Message_Msg.hxx>
|
||||
#include <OSD_OpenFile.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
#include <io.h>
|
||||
@@ -273,7 +274,7 @@ Standard_Boolean TObj_Model::SaveAs (const char* theFile)
|
||||
}
|
||||
*/
|
||||
// checking write access permission
|
||||
FILE *aF = fopen (theFile, "w");
|
||||
FILE *aF = OSD_OpenFile (theFile, "w");
|
||||
if (aF == NULL) {
|
||||
Messenger()->Send (Message_Msg("TObj_M_NoWriteAccess") << (Standard_CString)theFile,
|
||||
Message_Alarm);
|
||||
@@ -763,7 +764,7 @@ Standard_Boolean TObj_Model::checkDocumentEmpty (const char* theFile)
|
||||
if ( !osdfile.Exists() )
|
||||
return Standard_True;
|
||||
|
||||
FILE* f = fopen( theFile, "r" );
|
||||
FILE* f = OSD_OpenFile( theFile, "r" );
|
||||
if ( f )
|
||||
{
|
||||
Standard_Boolean isZeroLengh = Standard_False;
|
||||
|
Reference in New Issue
Block a user