Re: Modified normalize_newlines to work on PC and Mac, too.

At 02:46 01/05/23 +0200, Terje Bless wrote:
>On 23.05.01 at 09:02, Martin Duerst <duerst@w3.org> wrote:

> >Start   Mac     PC      Unix
> >CRLF    CR      CRCRLF  LF
>
>ITYM

Can you point me to a list of the acronyms you are using
(and their expansions)?



>  CRLF    CR      CRLFCR  LF
>                  ^^^^^^
>non?

I guess no. But I had it wrong, too ;-(. After

   $file =~ s(\015\012){\n}g; # Turn ASCII CRLF into native newline.

we still have CRLF, but then

   $file =~ s(\015)    {\n}g; # Turn ASCII CR   into native newline.

changes the CR to CRLF, so we get CRLFLF.


Regards,    Martin.

Received on Tuesday, 22 May 2001 21:23:40 UTC