|
From: | Jon Bright |
Subject: | Re: [Monotone-devel] "monotone cat file" not binary save? |
Date: | Wed, 07 Sep 2005 11:23:24 +0200 |
User-agent: | Mozilla Thunderbird 1.0.6 (Windows/20050716) |
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).
-- Jon Bright Silicon Circus Ltd. http://www.siliconcircus.com
[Prev in Thread] | Current Thread | [Next in Thread] |