diff src/input.cc @ 7728:13820b9f5fd9

more consistent handling of CR/CRLF/LF line endings in lexer and parser
author John W. Eaton <jwe@octave.org>
date Wed, 23 Apr 2008 16:03:34 -0400
parents 87eda1f8faaa
children 2dee19385d32
line wrap: on
line diff
--- a/src/input.cc
+++ b/src/input.cc
@@ -398,7 +398,7 @@
   FILE *instream = 0;
 
   if (name.length () > 0)
-    instream = fopen (name.c_str (), "r");
+    instream = fopen (name.c_str (), "rb");
 
   if (! instream && warn)
     warning ("%s: no such file or directory", name.c_str ());