We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4827a0a commit 1da5108Copy full SHA for 1da5108
1 file changed
src/plugin/protoc_gen_ocaml.ml
@@ -17,12 +17,14 @@ let read_all in_channel =
17
18
(* Read from stdin *)
19
let read () =
20
+ set_binary_mode_in stdin true;
21
read_all stdin
22
|> Ocaml_protoc_plugin.Reader.create
23
|> Plugin.CodeGeneratorRequest.from_proto_exn
24
25
(* Write to stdout *)
26
let write response =
27
+ set_binary_mode_out stdout true;
28
Plugin.CodeGeneratorResponse.to_proto response
29
|> Ocaml_protoc_plugin.Writer.contents
30
|> output_string stdout
0 commit comments