W3C home > Mailing lists > Public > www-validator@w3.org > May 2001

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

From: Martin Duerst <duerst@w3.org>
Date: Wed, 23 May 2001 10:14:30 +0900
Message-Id: <4.2.0.58.J.20010523101100.0316c370@sh.w3.mag.keio.ac.jp>
To: Terje Bless <link@tss.no>, W3C Validator <www-validator@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:58 GMT