From 33792858687f0c689b6fab5fd7030850cfcfeeee Mon Sep 17 00:00:00 2001
From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be>
Date: Mon, 20 Apr 2009 08:47:13 +0000
Subject: [PATCH] try to fix gshhs file reading on windows

---
 Plugin/GSHHS.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Plugin/GSHHS.cpp b/Plugin/GSHHS.cpp
index 68a9f60860..086ea15c6b 100644
--- a/Plugin/GSHHS.cpp
+++ b/Plugin/GSHHS.cpp
@@ -51,7 +51,7 @@ class GMSH_GSHHSPlugin:public GMSH_PostPlugin
       }
     };
     class reader_gshhs:public reader{
-      /*	$Id: GSHHS.cpp,v 1.29 2009-02-18 11:21:44 remacle Exp $
+      /*	$Id: GSHHS.cpp,v 1.30 2009-04-20 08:47:13 remacle Exp $
        *
        * Include file defining structures used in gshhs.c
        *
@@ -113,7 +113,7 @@ class GMSH_GSHHSPlugin:public GMSH_PostPlugin
       bool first_loop;
       public:
       reader_gshhs(std::string filename){
-        fp=fopen(filename.c_str(),"r");
+        fp=fopen(filename.c_str(),"rb");
         max_east = 270000000;
         first_loop=true;
       }
-- 
GitLab