Project

General

Profile

Feature #11839

CSV: liberal_parsing option

Added by Braden Anderson about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
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) Braden Anderson, 12/18/2015 01:21 AM

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

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

History

#1 [ruby-core:72232] Updated by Braden Anderson about 1 year ago

Edit: I've simplified the patch a bit.

#2 [ruby-core:72388] Updated by Braden Anderson about 1 year ago

Resolved a conflict.

#3 [ruby-core:72646] Updated by James Gray about 1 year ago

  • Status changed from Open to Closed
  • Assignee set to James Gray

Also available in: Atom PDF