Ver Fonte

[jvm] open .class output in binary mode

closes #10770
Simon Krajewski há 3 anos atrás
pai
commit
d9a5626629
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/generators/genjvm.ml

+ 1 - 1
src/generators/genjvm.ml

@@ -130,7 +130,7 @@ class file_output
 	method add_entry (content : string) (name : string) =
 		let path = base_path ^ name in
 		Path.mkdir_from_path path;
-		let ch = open_out path in
+		let ch = open_out_bin path in
 		output_string ch content;
 		close_out ch