projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
0029081: With Mingw-w64 Unicode Paths Do Not Work
[occt.git]
/
src
/
Draw
/
Draw_VariableCommands.cxx
diff --git
a/src/Draw/Draw_VariableCommands.cxx
b/src/Draw/Draw_VariableCommands.cxx
index
cfa2ced
..
d60318c
100644
(file)
--- a/
src/Draw/Draw_VariableCommands.cxx
+++ b/
src/Draw/Draw_VariableCommands.cxx
@@
-141,12
+141,12
@@
static Standard_Integer save(Draw_Interpretor& di, Standard_Integer n, const cha
{
if (n <= 2) return 1;
-
const char* name = a[2];
ofstream os;
os.precision(15);
OSD_OpenStream(os, name, ios::out);
- if (!os.rdbuf()->is_open()) {
+ if (!os.is_open() || !os.good())
+ {
di << "Cannot open file for writing "<<name;
return 1;
}