Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 96462 invoked by uid 500); 11 Jun 2002 22:36:05 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 96451 invoked from network); 11 Jun 2002 22:36:05 -0000 Reply-To: From: "Ryan Bloom" To: "'Greg Stein'" , "'Branko Cibej'" Cc: "'Ben Collins-Sussman'" , "'SVN Dev List'" , Subject: RE: repository conversion on windows fails / binary file Date: Tue, 11 Jun 2002 15:36:34 -0700 Organization: Covalent Technologies Message-ID: <005901c21198$70cba290$2200000a@KOJ> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal In-Reply-To: <20020611153528.A21228@lyra.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Greg Stein [mailto:gstein@lyra.org] > > On Tue, Jun 11, 2002 at 10:10:22PM +0200, Branko Cibej wrote: > >... > > The solution is to reopen the streams in binary mode, obviously. I > > wonder how you do that in APR. > > Pass APR_BINARY to the apr_file_open() function. Not a problem. > > Of course, it appears that apr/file_io/win32/open.c doesn't even look for > that flag :-( That is a pretty major bug. :-( > > Hmm. And reopening stdout/stdin in binary mode... oof. No fricking clue. We don't do that currently. You really only have two options as things stand today. 1) Close the file and re-open. 2) Implement apr_file_reopen (which devolves to option #1 in the worst case scenario). Ryan