From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA32344; Tue, 9 Mar 2004 23:53:39 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA32362 for ; Tue, 9 Mar 2004 23:53:38 +0100 (MET) Received: from woodstock.1969.ws (64-215-156-42.eosinc.net [64.215.156.42]) by nez-perce.inria.fr (8.12.10/8.12.10) with SMTP id i29MroKW014851 for ; Tue, 9 Mar 2004 23:53:55 +0100 Received: (qmail 10349 invoked from network); 9 Mar 2004 22:54:28 -0000 Received: from karl.1969.ws (HELO 1969.ws) (10.3.2.15) by woodstock.1969.ws with SMTP; 9 Mar 2004 22:54:28 -0000 Message-ID: <404E4AAF.6090509@1969.ws> Date: Tue, 09 Mar 2004 14:52:31 -0800 From: Karl Zilles Organization: 1969 Communications, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Dahlman CC: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Bug with really_input under cygwin References: <51FE3429-7219-11D8-8BF5-000393914EAA@atcorp.com> In-Reply-To: <51FE3429-7219-11D8-8BF5-000393914EAA@atcorp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 bug:01 cygwin:01 cygwin:01 bin:01 binary:02 unix:02 string:03 wrote:03 alter:95 eric:06 mode:07 function:09 leaves:09 fine:12 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 99 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