summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-09-09 15:02:13 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-09-09 15:02:13 +0000
commit607ae44a56d0579f6f812be6026f31c16ccdeb00 (patch)
treecfb78e7a364312ab2686d5ffb2e86259ddcfcade
parent3dc630d586040a79b5a04abfb15380cf50ab2e9b (diff)
Lire les fichers en mode binaire.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@977 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--otherlibs/threads/Tests/testio.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/threads/Tests/testio.ml b/otherlibs/threads/Tests/testio.ml
index d6d82d2f6..f6bda60ae 100644
--- a/otherlibs/threads/Tests/testio.ml
+++ b/otherlibs/threads/Tests/testio.ml
@@ -2,8 +2,8 @@
let test msg producer consumer src dst =
print_string msg; print_newline();
- let ic = open_in src in
- let oc = open_out dst in
+ let ic = open_in_bin src in
+ let oc = open_out_bin dst in
let (in_fd, out_fd) = ThreadUnix.pipe() in
let ipipe = ThreadUnix.in_channel_of_descr in_fd in
let opipe = ThreadUnix.out_channel_of_descr out_fd in