Salome HOME
projects
/
tools
/
libbatch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed job submission to LoadLeveler from Windows
[tools/libbatch.git]
/
src
/
Core
/
Batch_BatchManager_eClient.cxx
diff --git
a/src/Core/Batch_BatchManager_eClient.cxx
b/src/Core/Batch_BatchManager_eClient.cxx
index babdb826a83d1561c65cfc0be6d98fdda2518219..6fc77b45c63c922622698eb18832d0be3ad8d258 100644
(file)
--- a/
src/Core/Batch_BatchManager_eClient.cxx
+++ b/
src/Core/Batch_BatchManager_eClient.cxx
@@
-281,7
+281,8
@@
namespace Batch {
#ifdef WIN32
string fileName = generateTemporaryFileName(prefix);
#ifdef WIN32
string fileName = generateTemporaryFileName(prefix);
- outputStream.open(fileName.c_str());
+ // Open the file as binary to avoid problems with Windows newlines
+ outputStream.open(fileName.c_str(), ios_base::binary | ios_base::out);
#else
#else