Issue #14253 has been updated by doda (Kouichi Iwamoto).


Could you consider backporting this patch to 2.5?
The following code that generates a CSV file with a BOM does not work correctly with Ruby 2.5.

~~~ ruby
require 'csv'

csv_str = "\uFEFF" # BOM
CSV.generate(csv_str) do |csv|
  csv << ["1", "2", "3"]
end

print csv_str
~~~


----------------------------------------
Bug #14253: CSV.generate doesn't wrap a string anymore
https://bugs.ruby-lang.org/issues/14253#change-74712

* Author: ahorek (Pavel Rosick)
* Status: Closed
* Priority: Normal
* Assignee: kou (Kouhei Sutou)
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
linking with: https://github.com/ruby/csv/pull/13/files



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>