[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61293] [ruby-trunk - Bug #9582] CSV#headers not giving expected results.

From: nagachika00@...
Date: 2014-03-04 14:07:56 UTC
List: ruby-core #61293
Issue #9582 has been updated by Tomoyuki Chikanaga.

Tracker changed from Backport to Bug
Project changed from Backport200 to ruby-trunk
ruby -v set to -

----------------------------------------
Bug #9582: CSV#headers not giving expected results.
https://bugs.ruby-lang.org/issues/9582#change-45624

* Author: arup rakshit
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: -
* Backport: 
----------------------------------------
It seems something not working as expected in CSV. I tried to find the reason here , http://rxr.whitequark.org/mri/source/lib/csv.rb but I failed.

    require 'csv'
    
    content = <<_
    key,fr
    edit,テ嬰iter
    close,Fermer
    _
    
    File.write('test',content)
    
    file = CSV.read('test', :headers => true)
    file.headers # => ["key", "fr"]
    file.to_a # => [["key", "fr"], ["edit", "テ嬰iter"], ["close", "Fermer"]]
    
    content = <<_
    key,fr
    
    edit,テ嬰iter
    close,Fermer
    _
    
    File.write('test1',content)
    
    file = CSV.read('test1', :headers => true)
    file.headers # => []  # <~~~~~~~~~~~ Is this a bug ?
    file.to_a # => [[], [], ["edit", "テ嬰iter"], ["close", "Fermer"]]



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

In This Thread

Prev Next