From b7b04d6b9ec023d8ba56cf4fc5d17bdc77809c50 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 15 Jul 2016 12:53:50 -0700 Subject: [PATCH] nickle's parse_csv doesn't strip quotes, so we have to This appears to just be a bug in the nickle code which has been fixed upstream. This local fix only strips quotes if present, so it will work with either nickle version unless we have names starting with " Signed-off-by: Keith Packard --- bin/partslist-vendor | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/partslist-vendor b/bin/partslist-vendor index 44054c7..03e3aae 100755 --- a/bin/partslist-vendor +++ b/bin/partslist-vendor @@ -26,7 +26,11 @@ string[*] read_line(file f) { lineno++; string line = fgets(f); - return String::parse_csv(line); + string[*] elts = String::parse_csv(line); + for (int i = 0; i < dim(elts); i++) + if (elts[i][0] == '"') + elts[i] = String::dequote(elts[i]); + return elts; } string[*] header; -- 2.30.2