Skip to content
Snippets Groups Projects
Commit 717a3e59 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

CONFIG: always allow spaces in fileName for Windows (#1238)

- this cannot be left as a configurable value (on windows), since it
  needs to be enabled even prior to reading the etc/controlDict file,
  in case the OpenFOAM installation path itself contains spaces.
parent 3ac78b3f
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,8 @@ InfoSwitches ...@@ -68,8 +68,8 @@ InfoSwitches
allowSystemOperations 1; allowSystemOperations 1;
// Allow space character in fileName (use with caution) // Allow space character in fileName (use with caution)
// Default: 0 for non-Windows, 1 for Windows // Ignored (always 1) for Windows.
//// allowSpaceInFileName 0; allowSpaceInFileName 0;
} }
......
...@@ -42,7 +42,7 @@ int Foam::fileName::debug(Foam::debug::debugSwitch(fileName::typeName, 0)); ...@@ -42,7 +42,7 @@ int Foam::fileName::debug(Foam::debug::debugSwitch(fileName::typeName, 0));
int Foam::fileName::allowSpaceInFileName int Foam::fileName::allowSpaceInFileName
( (
#ifdef _WIN32 #ifdef _WIN32
Foam::debug::infoSwitch("allowSpaceInFileName", 1) 1 // Windows: expect spaces to occur
#else #else
Foam::debug::infoSwitch("allowSpaceInFileName", 0) Foam::debug::infoSwitch("allowSpaceInFileName", 0)
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment