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:
@@ -38,6 +38,7 @@
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <OSD_OpenFile.hxx>
|
||||
|
||||
StepSelect_WorkLibrary::StepSelect_WorkLibrary
|
||||
(const Standard_Boolean copymode)
|
||||
@@ -84,7 +85,7 @@ Standard_Boolean StepSelect_WorkLibrary::WriteFile
|
||||
if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
|
||||
|
||||
ofstream fout;
|
||||
fout.open(ctx.FileName(),ios::out|ios::trunc);
|
||||
OSD_OpenStream(fout,ctx.FileName(),ios::out|ios::trunc);
|
||||
|
||||
if (!fout || !fout.rdbuf()->is_open()) {
|
||||
ctx.CCheck(0)->AddFail("Step File could not be created");
|
||||
|
Reference in New Issue
Block a user