]> Creatis software - clitk.git/commitdiff
Files were not opened in binary mode which caused problems with vox files under windows
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 16 Sep 2011 16:29:36 +0000 (18:29 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Sat, 17 Sep 2011 21:05:05 +0000 (17:05 -0400)
common/clitkCommon.cxx

index 785b0fd2c021ad087dd500a68ba0d03a60481b65..10f608e6ce8b7ba7c92d6085f4d1b1588a047e3d 100644 (file)
@@ -243,7 +243,7 @@ double clitk::ComputeEuclideanDistanceFromPointToPlane(const itk::ContinuousInde
 // Open a file for reading
 void clitk::openFileForReading(std::ifstream & is, const std::string & filename)
 {
-  is.open(filename.c_str(), std::ios::in);
+  is.open(filename.c_str(), std::ios::in | std::ios::binary);
   if ( is.fail() ) {
     clitkExceptionMacro("Could not open file for reading: " 
                         << filename << ". Error is : <"