monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] "monotone cat file" not binary save?


From: Thomas Haas
Subject: Re: [Monotone-devel] "monotone cat file" not binary save?
Date: Wed, 07 Sep 2005 11:42:21 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Jon Bright wrote:
> Thomas Haas wrote:
> 
>>
>> Googled and found something about setmode(fd,mode) on
>> http://www.cs.toronto.edu/~cosmin/TA/prog/sysconf/ (worth reading):
>>
>>   Handling binary files via standard I/O
> 
> 
> Monotone's using C++ streams everywhere.  I did have a play with various
> SetMode tricks, but as I recall, none of them were acceptable.  If
> someone does look at this, it's worth noting that there's an interesting
> disparity between the output of monotone cat (which has CRLF) and the
> output of various other commands (which doesn't).
> 

Is the SetMode operation you are referring to managing the iostreams or
the file handle of the OS? The issue seems to be the file handle, not
the iostreams.

Regards
- tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]