Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
b01611a1
Commit
b01611a1
authored
Jun 13, 2019
by
Mark OLESEN
Committed by
Andrew Heather
Jun 13, 2019
Browse files
CONFIG: make default for allowSpaceInFileName platform dependent
- enable by default on Windows, disable by default on non-Windows.
parent
96ed6048
Changes
2
Hide whitespace changes
Inline
Side-by-side
etc/controlDict
View file @
b01611a1
...
...
@@ -68,7 +68,8 @@ InfoSwitches
allowSystemOperations 1;
// Allow space character in fileName (use with caution)
allowSpaceInFileName 0;
// Default: 0 for non-Windows, 1 for Windows
//// allowSpaceInFileName 0;
}
...
...
src/OpenFOAM/primitives/strings/fileName/fileName.C
View file @
b01611a1
...
...
@@ -36,11 +36,18 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
const
char
*
const
Foam
::
fileName
::
typeName
=
"fileName"
;
int
Foam
::
fileName
::
debug
(
Foam
::
debug
::
debugSwitch
(
fileName
::
typeName
,
0
));
int
Foam
::
fileName
::
allowSpaceInFileName
(
#ifdef _WIN32
Foam
::
debug
::
infoSwitch
(
"allowSpaceInFileName"
,
1
)
#else
Foam
::
debug
::
infoSwitch
(
"allowSpaceInFileName"
,
0
)
#endif
);
const
Foam
::
fileName
Foam
::
fileName
::
null
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment