Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-35

Escaped line separators are not supported

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • 1.x
    • None
    • None

    Description

      Commons CSV doesn't handle escaped line separators, for example:

      value1;value2;value3a\
      value3b
      

      In this case the expected result is:

      ["value1", "value2", "value3a\nvalue3b"]

      This kind of escaping is produced by MySQL, whether the field enclosing is enabled or not. It's possible to see enclosing quotes and escaped line separators like this:

      "value1";"value2";"value3a\
      value3b"
      

      Attachments

        1. commons-csv CSV-35 escapeCRLFOnce.patch
          12 kB
          Tillmann Gaida
        2. commons-csv CSV-35 escapeCRLFOnce test.patch
          1 kB
          Tillmann Gaida
        3. CSV-35.patch
          5 kB
          Thomas Neidhart
        4. mysql-export-line-terminated-by-crlf.csv
          0.2 kB
          Emmanuel Bourg
        5. mysql-export-line-terminated-by-lf.csv
          0.2 kB
          Emmanuel Bourg

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ebourg Emmanuel Bourg

            Dates

              Created:
              Updated:

              Slack

                Issue deployment