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: Richard Levitte - VMS Whacker
Subject: Re: [Monotone-devel] "monotone cat file" not binary save?
Date: Wed, 07 Sep 2005 03:00:30 +0200 (CEST)

In message <address@hidden> on Tue, 6 Sep 2005 14:27:23 -0700, Nathaniel Smith 
<address@hidden> said:

njs> It's definitely not an intentional feature of 'cat'.  However,
njs> it's possible that it's some unavaoidable win32 bogosity, like
njs> stdout being provided as a text-mode descriptor that is
njs> inherently lossy or something...

As most other operating systems that have a line endine sequence other
than NL, I think Windows C library *correctly* does NL->CRNL
conversion on stdout unless you somehow explicitely tell it that the
output should remain unconverted.

njs> if that's the case (and I'm just guessing) then we might not be
njs> able to fix it.  Can any of the win32-clued people out there shed
njs> any more light on this?  If it's not inherently unfixable,
njs> though, we should fix it.

One way to fix it is to have a --output parameter, to have an explicit
output file that monotone can treat the way it sees fit.  This might
ctually be the cleanest way to do it, considering other operating
systems may have yet other tweaks to get this right.

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis




reply via email to

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