Skip to content

Commit

Permalink
fix problems with unv files in UNIX format when reading under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 1, 2016
1 parent e6575f6 commit 5c79130
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -102,7 +102,10 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform()
{
// Kernel_Utils::Localizer loc;
Status aResult = DRS_OK;
std::ifstream in_stream(myFile.c_str());
// See http://forum.freecadweb.org/viewtopic.php?f=18&t=14404&p=135981#p136086 (wmayer)
// Line endings in UNIX format cause problems on Windows, thus the file must be opened
// in binary mode.
std::ifstream in_stream(myFile.c_str(), std::ios::in | std::ios::binary);
try
{
{
Expand Down

0 comments on commit 5c79130

Please sign in to comment.