Project

General

Profile

Actions

Bug #5070

closed

CSV.generate should not modify the given option hash

Added by marcandre (Marc-Andre Lafortune) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
r32598
Backport:
[ruby-core:38356]

Description

Currently:

CSV.generate( {}.freeze ) # => RuntimeError: can't modify frozen Hash

I'm not sure where these tests would ideally go; In the attached patch, I've put them at the end of csv/test_interface

If you can, please make the modifications you see fit, or else I'll commit this in a of week or two.

(From http://stackoverflow.com/questions/6759487/ruby-hash-object-changed-by-csv-library )


Files

csv.patch (1.53 KB) csv.patch marcandre (Marc-Andre Lafortune), 07/22/2011 04:23 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0