Skip to content

Commit 3a21a4e

Browse files
committed
set_binary_mode in stdout
1 parent bf7200e commit 3a21a4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlx/pp.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ let () =
3232
if !print_ml then Format.printf "%a@." Pprintast.structure str
3333
else
3434
let oc = stdout in
35+
Out_channel.set_binary_mode oc true;
3536
output_string oc
3637
Ppxlib_ast.Compiler_version.Ast.Config.ast_impl_magic_number;
3738
output_value oc fname;

0 commit comments

Comments
 (0)