Skip to content

CSV-Stream doesn't CSV metacharacters in filenames #371

@davidribyrne

Description

@davidribyrne

Describe the bug
The CSV-stream output is corrupted when the filename or location fields contain CSV metacharacters like commas.

To Reproduce
What kind of monster would put commas in a filename? That's a great question:

wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.8.tar.xz
tar -xf linux-6.1.8.tar.xz
scc --format=csv-stream linux-6.1.8 | grep qcom,

Expected behavior
Double quotes in the location and filename fields should escaped by adding a second double quote and then each field should be surrounded with double quotes.

Desktop (please complete the following information):

  • OS: all
  • Version: 3.1.0 and earlier

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions