Commits

Anonymous committed eb19b61

#5640: use open_in_bin to read cmt files.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12591f963ae5c-01c2-4b8c-9fe0-0dff7051ff02

Comments (0)

Files changed (1)

typing/cmt_format.ml

 
 let read filename =
 (*  Printf.fprintf stderr "Cmt_format.read %s\n%!" filename; *)
-  let ic = open_in filename in
+  let ic = open_in_bin filename in
   try
     let magic_number = read_magic_number ic in
     let cmi, cmt =