Re: CRLF fun stuff again...


Subject: Re: CRLF fun stuff again...
From: Sak Wathanasin (sw@nan.co.uk)
Date: Sat Feb 10 2001 - 06:03:19 EST


In reply to Duncan Sinclair's message of the 10/02/2001 at 10:18 +0000,

> >The converse also happens. There are utilities that use TEXT
>>as their file types that are not TEXT at all. (most of these, I
>>admit, are programmer/geek tools)
>
>This should not matter. The transformation is reversable and so
>is transparent to the Mac application.
>
>...
>
>Yes. And all the linefeeds to returns.
>
>>Do you want to
>>do this even though the conversion is *not* reversible?
>
>But the transformation is reversible. the conversion is as follows:

No it isn't, not if the file was a binary file in the first place.
Think of a binary pixmap embedded in a PS file. There will some bytes
in the pixmap that are \0x0A that should not be converted to CRs.

-- 
Sak Wathanasin
Network Analysis Limited
178 Wainbody Ave South, Coventry CV3 6BX, UK

Internet: sw@nan.co.uk Phone: (+44) 24 76 41 99 96 Mobile: (+44) 79 70 75 19 12 Fax: (+44) 24 76 69 06 90



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