News for hackers. Stuff that matters.
Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by euroderf on Tuesday March 12, 2024 @03:25PM (#39683772)
Four commas in a row.
Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by greenshackle2 on Tuesday March 12, 2024 @04:05PM (#39684278)
Can you parse this 2-row CSV:

SomeCommas,MoreCommas,OnlyOneComma,ALotOfCommas

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by euroderf on Tuesday March 12, 2024 @04:58PM (#39684869)
Pathological cases are never difficult to find for any app.
Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by greenshackle2 on Tuesday March 12, 2024 @05:12PM (#39685020)
Wrong. Consider the standard backslash escape: represent literal comma as "\,", and literal backslash as "\\". Backslashes are otherwise forbidden.

It will be difficult to find pathological cases for this grammar, because they don't exist.

Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by euroderf on Wednesday March 13, 2024 @02:33AM (#39688629)
Well okay, but there's an outer circle of Hell where people write code to manipulate Windows filepaths.