English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Bug with really_input under cygwin
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-09 (22:53)
From: Karl Zilles <zilles@1...>
Subject: Re: [Caml-list] Bug with really_input under cygwin
Eric Dahlman wrote:
> This function works fine under Unix but will fail under Cygwin.  I have 
> tried to use set_binary_mode_* to see if that would help but it did not 
> alter the the results.  So that leaves me with a couple of questions:

Use open_in_bin to avoid translation of line endings.  Of course, your 
string will then contain \r\n after each line, but this may be ok for you.

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners