apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: repository conversion on windows fails / binary file
Date Tue, 11 Jun 2002 23:10:44 GMT
Ryan Bloom wrote:

>>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.   :-(
>  
>
It's not that bad, really. The Win32 apr_file_t uses the OS's file 
handles, which don't know about newline translation and stuff. So 
APR_BINARY is actually what you get. The "bug" is that you can't turn 
 it off, e.g., APR doesn't do newline translation for you.


-- 
Brane ─îibej   <brane@xbc.nu>   http://www.xbc.nu/brane/



Mime
View raw message