[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Having trouble downloading ShrinkIt archives
In article <3A194AB0.90F458C4@swbell.net>,
Rubywand <rubywand@swbell.net> wrote:
> The source of problems for PC appears to be, in part, the definition of a Text
>line ender-- i.e. you have two characters: $0D $0A. When a (supposedly) Text file is
>created, there is an attempt to make sure that known line enders for other systems
>(e.g. just an $0D or an $0A) are valid for PC. So an $0D without an $0A or an $0A
>without an $0D is 'repaired' and becomes $0D $0A.
>
> If the Mac (running under whatever system) does not try to fix line enders,
>then it would not much matter whether it is creating a Text file or a binary file.
It should be possible to detect this situation on a PC by examining the
length of the file. If it's a "plain" .po or .do image, the image file
would grow slightly because of the inserted line terminators.
The authors of the PNG file format put 0x0d and 0x0a into the file magic
number, so that anything that tried to convert the EOL markers would cause
immediately recognizeable damage. Would've been nice to see that in the
2MG file format.
--
Send mail to fadden@fadden.com (Andy McFadden)
CD-Recordable FAQ - http://www.fadden.com/cdrfaq/ (a/k/a www.spies.com/~fadden)
Fight Internet Spam - http://spam.abuse.net/spam/ & news.admin.net-abuse.email