[前][次][番号順一覧][スレッド一覧]

ruby-reference-manual:3114

From: "sho-h (Sho Hashimoto)" <sho-h@n...>
Date: Tue, 26 Jun 2012 23:03:31 +0900
Subject: [ruby-reference-manual:3114] [るりまプロジェクト - Bug #6642][Rejected] CSV file opened for writing in TEXT mode puts wrong row seprator for \r\n


Issue #6642 has been updated by sho-h (Sho Hashimoto).

Status changed from Open to Rejected

Thanks to register ticket. But this project is Japanese reference manual renovation project.

Please register ticket to other Ruby Implementation project again.
----------------------------------------
Bug #6642: CSV file opened for writing in TEXT mode puts wrong row seprator for \r\n
https://bugs.ruby-lang.org/issues/6642#change-27484

Author: peterept (Peter Koch)
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
reporter: 
ruby_version: 1.9


This is incorrect:

csv = CSV.open(filename, "w", {:row_sep => "\r\n"}) # actually writes \r\r\n for row_sep

This works correctly:

csv = CSV.open(filename, "wb", {:row_sep => "\r\n"}) # correctly writes \r\n for row_sep as exptected


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

--
ML: ruby-reference-manual@m...
Info: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]