Re: CRLF fun stuff again...


Subject: Re: CRLF fun stuff again...
From: Carsten Neumann (deltor@snafu.de)
Date: Sat Feb 10 2001 - 13:55:30 EST


On Sat, 10 Feb 2001, Duncan Sinclair wrote:
> Paul Schinder writes:
> >I missed this before.
>
> ...
>
> >The transformations you're using aren't the ones that netatalk does
> >(or at least netatalk did in the past before I turned it off). These
> >are reversible. netatalk does
> >
> >tr '\r' '\n' to Unix and tr '\n' '\r' to Mac OS.
> >
> >That's why people are warning about data corruption.
>
> Guess what? You're wrong. If people are going to try to tell me I'm
> wrong, please do the research first!
>
> Here's a chunk of code from afpd's fork.c file. It uses an identical
> process for reading and writing files...
>
> /*
> * If this file is of type TEXT, swap \015 to \012.
> */
> if (xlate) {
> for ( p = rbuf, q = p + rbuflen; p < q; p++ ) {
> if ( *p == '\015' ) {
> *p = '\012';
> } else if ( *p == '\012' ) {
> *p = '\015';
> }
> }
> }
>

I'm really glad to see that netatalk does it the way I would do, you obviously would do, and I
suspected netatalk would do it.

So many people with so much guessledge... ;-)

Regards

        Carsten



This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:32 EDT