-// Copyright (C) 2009-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2009-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
std::string launch_script = "/tmp/runSalome_" + _job_file_name + "_" + _launch_date + ".sh";
std::ofstream launch_script_stream;
- launch_script_stream.open(launch_script.c_str(), std::ofstream::out);
+ launch_script_stream.open(launch_script.c_str(),
+ std::ofstream::out
+#ifdef WIN32
+ | std::ofstream::binary //rnv: to avoid CL+RF end of line on windows
+#endif
+ );
// Begin of script
launch_script_stream << "#!/bin/sh -f" << std::endl;