in reply to Re^4: different length of a line from linux and windows textfile? (heirs)
in thread different length of a line from linux and windows textfile?

"Newline is one character but two bytes on Windows"

I clearly said "in a Windows text file" in both of my posts. I didn't read past this point in your rant, and I am done with you.

Incidentally, the only Windows application that still seems to care about CRLFs is Notepad. The Windows/UNIX distinction is slowly dying.

  • Comment on Re^5: different length of a line from linux and windows textfile? (heirs)

Replies are listed 'Best First'.
Re^6: different length of a line from linux and windows textfile? (heirs)
by tye (Sage) on Mar 17, 2014 at 22:52 UTC
    I clearly said "in a Windows text file" in both of my posts.

    Even in a Windows text file, newline is never simultaneously 1 character and two bytes.

    I didn't read past this point in your rant, and I am done with you.

    But such mistakes aren't a surprise when your reaction to a correction is to minimize your mistake and then to bury your head in the sand. :)

    Confusion on these points is quite common and often leads to actual bugs (like in the head of this thread). Just go look it how many people are insisting that 'chomp strips "\r" characters'.

    I think perlport does a great job of keeping this confusion high.

    - tye