csv: Better support separators other than comma or tab.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 5 Nov 2010 04:04:05 +0000 (21:04 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 5 Nov 2010 04:04:05 +0000 (21:04 -0700)
commit08af9f724ce00f0ab6bdbbfc61d6a3e624f2c012
tree12e1b60fdf4dc073eb621cab032f2c924b607c33
parent4d2a668baf0e1030f3eb55ef6276fd284e00b0aa
csv: Better support separators other than comma or tab.

Before this commit, although any separator could be specified for cvs
output, the set of characters that triggered quoting was fixed, and only
really suitable for comma and tab separators.  This commit fixes the
problem, making sure that whenever the specified separator appears in a
field, that field will be quoted.

Problem noticed during a discussion with Björn Manke <bjoernmanke@gmx.net>
on pspp-users.
src/output/csv.c