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

Print from Reader with embedded quotes generates incorrect output

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.9.0
    • Component/s: Printer
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: