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

Re: svn commit: rev 333 - trunk/subversion/libsvn_ra_local trunk/subversion/clients/cmdline

From: Mark Benedetto King <bking_at_answerfriend.com>
Date: 2001-11-01 18:49:13 CET

On Thu, Nov 01, 2001 at 10:44:43AM -0600, Karl Fogel wrote:
> Branko �ibej <brane@xbc.nu> writes:
> > >Would like some other's opinions on this (apparently, at least one
> > >other person was not confused by the byte count).
> > >
> >
> > Forget persons, a script parser will be confused by the byte count
> > unless you tell it how many bytes there are in a newline separator.
> >
> > Don't you just love interop. :-)
> I think in practice this is unlikely to be a problem; in any case,
> that's just one of many things about log output that a script would
> have to know (for whatever platform it's running on).
> When you call printf("\n") on a non-Unix machine, can it output \n\r
> or \r\n, or will it still just output \n?

Using Microsoft's libraries, FILE *'s do "\n" -> "\r\n" mapping if they
are opened in "text mode" (the default). To avoid this mapping you
need, for example:

        FILE *fp = fopen(filename, "wb");


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:47 2006

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