OCaml Forge

Detail: [#1217] cannot parse fields beginning with quoted text in tab-delimited files

Bugs: Browse | Download .csv | Monitor

[#1217] cannot parse fields beginning with quoted text in tab-delimited files

Date:
2012-09-17 20:50
Priority:
3
State:
Closed
Submitted by:
A Carter (ac4000)
Assigned to:
Nobody (None)
Host:
forge.ocamlcore.org
Forwarded Upstream:
None
Summary:
cannot parse fields beginning with quoted text in tab-delimited files

Detailed description
In a tab-separated test file:

# cat testfile.txt
"One" "Two"
"Three" "Four" Four

# hexdump -C testfile.txt
00000000 22 4f 6e 65 22 09 22 54 77 6f 22 0a 22 54 68 72 |"One"."Two"."Thr|
00000010 65 65 22 09 22 46 6f 75 72 22 20 46 6f 75 72 0a |ee"."Four" Four.|
00000020

# csvtool readable -t TAB testfile.txt
Fatal error: exception Csv.Failure(2, 1, "Non-space char after closing the quoted field")

Followup

Message
Date: 2012-09-17 23:06
Sender: A Carter

Correct. My mistake.
Date: 2012-09-17 22:39
Sender: Sylvain Le Gall

I think this is the wrong BTS.

Please visit
https://forge.ocamlcore.org/tracker/?group_id=113

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2012-09-17 23:10gildor-admin
close_dateNone2012-09-17 23:10gildor-admin