Project

General

Profile

Feature #11839

CSV: liberal_parsing option

Added by bluej100 (Braden Anderson) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
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.

csv_liberal_parsing.diff View (5.86 KB) bluej100 (Braden Anderson), 12/18/2015 01:21 AM

csv_liberal_parsing.diff View (5.5 KB) bluej100 (Braden Anderson), 12/18/2015 01:47 AM

csv_liberal_parsing.diff View (5.14 KB) bluej100 (Braden Anderson), 12/19/2015 03:42 PM

History

#1 [ruby-core:72232] Updated by bluej100 (Braden Anderson) over 1 year ago

Edit: I've simplified the patch a bit.

#3 [ruby-core:72646] Updated by JEG2 (James Gray) over 1 year ago

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

Also available in: Atom PDF