]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Open SAUV file in binary mode on WINDOWS to fix the "0022370 [CEA 970] Bug reading...
authorrnv <rnv@opencascade.com>
Thu, 24 Oct 2013 08:36:05 +0000 (08:36 +0000)
committerrnv <rnv@opencascade.com>
Thu, 24 Oct 2013 08:36:05 +0000 (08:36 +0000)
src/MEDLoader/SauvMedConvertor.cxx

index 2d4075deb0472aad534eace835a1e2a56a84f326..8578ffb7a8e755379cfcc4a8b41f6942aa15b988 100644 (file)
@@ -2045,7 +2045,11 @@ bool XDRReader::open()
 {
   bool xdr_ok = false;
 #ifdef HAS_XDR
+#ifdef WIN32
+  if ((_xdrs_file = ::fopen(_fileName.c_str(), "rb")))
+#else 
   if ((_xdrs_file = ::fopen(_fileName.c_str(), "r")))
+#endif
     {
       _xdrs = (XDR *)malloc(sizeof(XDR));
       xdrstdio_create((XDR*)_xdrs, _xdrs_file, XDR_DECODE);