[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnlook diff output in wrong order when redirected

From: Daniel Shahaf <d.s_at_daniel.shahaf.co.il>
Date: Sun, 6 Jul 2008 08:54:32 +0300 (Jerusalem Daylight Time)

Karl Fogel wrote on Sat, 5 Jul 2008 at 18:37 -0400:
> Daniel Shahaf <d.s_at_daniel.shahaf.co.il> writes:
> > Steve Hay wrote on Fri, 4 Jul 2008 at 17:27 +0100:
> >> Karl Fogel wrote:
> >> > By accident, certainly. I'm not sure what exactly changed to cause
> >> > this, though. Does the patch below have any effect for you?
> >>
> >> Sorry, I'm not set up for building SVN. I've only ever used prebuilt
> >> binaries. I'm willing to give it a go if nobody else has time, but
> >> hopefully somebody else on Windows already has a suitable build
> >> environment set up and can try the patch more easily.
> >
> > Karl's patch fixes the problem for me.
>
> Ugh.
>
> I mean: that's great, but why on earth should that patch be necessary?
> Why isn't stdout buffering things in the right order to begin with?
>

Because svn_cmdline_printf() uses the standard "FILE *stdout" to write
to stdout, while svn_stream_for_stdout() uses (through
apr_file_open_stdout()) Windows API's to get a handle for stdout?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-06 07:54:47 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.