News for hackers. Stuff that matters.
Re:Dangers of CSV Injection by efreak on Tuesday October 10, 2017 @06:50PM (#15445963)
Does any system (modern or not) actually use `\r` for anything? Because I'm not aware of it being used alone. I'm not even sure why software today still differentiates between the two instead of treating any of `\r`, `\n`, `\r\n` as a single line break. I can maybe see it being useful eg in word processor to differentiate manual line break from paragraph break, but that's not a plain text format; in the vast majority of cases, treating them as the same character in parsers shouldn't* cause any issues.

* shouldn't ≠ doesn't

Re:Dangers of CSV Injection by burntsushi on Wednesday October 11, 2017 @07:25AM (#15448855)
IIRC, Mac systems used to use `\r` for line endings. It doesn't any more and instead uses `\n`.