projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0029081: With Mingw-w64 Unicode Paths Do Not Work
[occt.git]
/
src
/
BRepTools
/
BRepTools.cxx
diff --git
a/src/BRepTools/BRepTools.cxx
b/src/BRepTools/BRepTools.cxx
index
7efc932
..
449a9c6
100644
(file)
--- a/
src/BRepTools/BRepTools.cxx
+++ b/
src/BRepTools/BRepTools.cxx
@@
-789,7
+789,8
@@
Standard_Boolean BRepTools::Write(const TopoDS_Shape& Sh,
{
ofstream os;
OSD_OpenStream(os, File, ios::out);
- if (!os.rdbuf()->is_open()) return Standard_False;
+ if (!os.is_open() || !os.good())
+ return Standard_False;
Standard_Boolean isGood = (os.good() && !os.eof());
if(!isGood)