| Description: |
package require csv
puts [csv::split -alternate {a;b""b;c} \;]
=> a b {;c}
That is with csv 0.8.1 / tcl 8.6.5.
Expected result:
a b\"b c
(as [csv::split {a;b""b;c} \;] does)
I'm aware, that csv formating (and in turn parsing) is a somewhat
vague area. So the csv::split -alternate parser does, what it does.
But it's not only, that the result for this input is rather strange
(what did eat the second "b" of the sample input, only to start with)
and that all other csv parser, I tried, did a better job. I also
think, that the result doesn't match what the documentation say
(http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/csv/csv.html#section3)
|