Project

General

Profile

Actions

Feature #11839

closed

CSV: liberal_parsing option

Added by bluej100 (Braden Anderson) about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Target version:
-
[ruby-core:72231]

Description

I've submitted a pull request, https://github.com/ruby/ruby/pull/1160 , which adds a liberal_parsing option to the CSV module, off by default. This allows for parsing of some invalid input, like unescaped quotes in the middle of a field, which can be unambiguously interpreted.

I discussed it briefly with JEG2, and he asked me to bring it up here in case anyone here objects. I've attached the patch.

Thank you for your consideration.


Files

csv_liberal_parsing.diff (5.86 KB) csv_liberal_parsing.diff bluej100 (Braden Anderson), 12/18/2015 01:21 AM
csv_liberal_parsing.diff (5.5 KB) csv_liberal_parsing.diff bluej100 (Braden Anderson), 12/18/2015 01:47 AM
csv_liberal_parsing.diff (5.14 KB) csv_liberal_parsing.diff bluej100 (Braden Anderson), 12/19/2015 03:42 PM

Updated by bluej100 (Braden Anderson) about 9 years ago

Edit: I've simplified the patch a bit.

Updated by JEG2 (James Gray) almost 9 years ago

  • Status changed from Open to Closed
  • Assignee set to JEG2 (James Gray)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0