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

Print from Reader with embedded quotes generates incorrect output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.8
    • 1.9.0
    • Printer
    • None

    Description

      I have found a problem in v1.8 where output with embedded quotes supplied from Reader is incorrectly escaping. When data read from the Reader starts with an embedded quote, output quote escaping is unbalanced and cannot be subsequently parsed/loaded. Subsequent embedded quotes are correctly escaped.

      input data:
      "A" ASKED "B" ANOTHER QUESTION.

      output:
      """"A"" ASKED ""B"" ANOTHER QUESTION."

      expected output:
      """A"" ASKED ""B"" ANOTHER QUESTION."

      See attached patches.

      Attachments

        1. fix-print-quoted-from-reader-tests.patch
          0.7 kB
          Jason A. Guild
        2. fix-print-quoted-from-reader.patch
          0.7 kB
          Jason A. Guild

        Activity

          People

            Unassigned Unassigned
            jaguild Jason A. Guild
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: