From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id EEDC117DB52F for ; Fri, 18 Dec 2015 10:16:01 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id C54A1B5D885 for ; Fri, 18 Dec 2015 10:48:08 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 2659F18CC7CC for ; Fri, 18 Dec 2015 10:48:09 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 13B901204B5; Fri, 18 Dec 2015 10:48:07 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 6637D120496 for ; Fri, 18 Dec 2015 10:48:03 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=Ek6QSwZTdn4FdFxwdJRxjT7FX1o=; b=JZRMlUxeD8qQLaz/tM oo5ZB4IuFlmUXtNd8C/VhScLVaof6huQT+dZRXRk/kd5hrQbThx8Xgkt9slOeigG jwhZ/qoPpE4nsD9KoM5QGcEZkL7P0tmxSO1nfQDPzntWMzN2+PNJmHd++foOFkVP MBivzC3W6sxjzjlW/PQev0uJM= Received: by filter0835p1mdw1.sendgrid.net with SMTP id filter0835p1mdw1.22265.567365CF1A 2015-12-18 01:47:59.368372674 +0000 UTC Received: from herokuapp.com (ec2-54-159-2-169.compute-1.amazonaws.com [54.159.2.169]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id txJ6eoMgQV-Uirs7ASfYYw for ; Fri, 18 Dec 2015 01:47:59.219 +0000 (UTC) Date: Fri, 18 Dec 2015 01:47:59 +0000 From: bluej100@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46943 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11839 X-Redmine-Issue-Author: bluej100 X-Redmine-Sender: bluej100 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS68R6yGilkgd5V3khQmvNzCu/N6UdszFz+NIw GbbigVeYwKgUW3lTRCtmLiL3tcrEViL+MBAvtENOOKqPKeU1u2ABH6MI3JgpFth7ceWNMVtlpVxR67 mnpF9gPf49brujj05bTsKfLytBmy9TjyahLzNo+Otier0Mau7yWw6cNhGA== X-ML-Name: ruby-core X-Mail-Count: 72232 Subject: [ruby-core:72232] [Ruby trunk - Feature #11839] CSV: liberal_parsing option X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11839 has been updated by Braden Anderson. File csv_liberal_parsing.diff added Edit: I've simplified the patch a bit. ---------------------------------------- Feature #11839: CSV: liberal_parsing option https://bugs.ruby-lang.org/issues/11839#change-55638 * Author: Braden Anderson * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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 (5.5 KB) -- https://bugs.ruby-lang.org/