Uploaded image for project: 'data.csv'
  1. DCSV-6

read-csv can not handle white-space at end of line

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      When whitespace is present after the closing \" the clojure reader crashes with a weird error.
      It took me some time to notice it was a white-space issue as whitespace is .... not visible.

      See an example of the error below.

      => (read-csv (java.io.StringReader. "\"a\" " ))
      Exception CSV error (unexpected character: ) clojure.data.csv/read-quoted-cell (csv.clj:36)
      => (read-csv (java.io.StringReader. "\"a\"" ))
      (["a"])

        Attachments

          Activity

            People

            • Assignee:
              jonase Jonas Enlund
              Reporter:
              cvkemenade Cees van Kemenade
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: