clementfarabet / lua---csv

A package to read and write CSV. Provides high-level database-like handlers.
46 stars 16 forks source link

weird behavior across platforms #7

Open culurciello opened 9 years ago

culurciello commented 9 years ago

Strange behavior occurs sometimes both in OS X and also Ubuntu 14.04:

We use a file "categories.txt":

classes,targets
dog,0

I parse it like this:

query = csvigo.load{path='categories.txt', mode='tidy'};

it gets parsed incorrectly like this:

<csv>   parsing file: categories.txt    
<csv>   tidying up entries  
<csv>   returning tidy table    
query:  {
  classes : 
    {
      1 : "dog"
    }
 : argets
    {
"     1 : "0
    }
}