csv-file-writer: Fix implementation of decimal point option. 20121228030502/pspp 20121229030503/pspp 20121230030503/pspp 20121231030505/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 28 Dec 2012 05:17:43 +0000 (21:17 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 28 Dec 2012 05:17:43 +0000 (21:17 -0800)
commitd49a471a1fa405dd68d51ade4a4fed35b77cc41d
tree237e60418fb02f3ecbf8a7daceac649f9a5cfa69
parent8539c057c6889ff335da0e00117cc0f5fb9bf72d
csv-file-writer: Fix implementation of decimal point option.

Now that pspp sets LC_NUMERIC, dtoastr() might yield either '.' or ',' as
the decimal point, so the CSV writer needs to check for either one and
replace it by the decimal point requested by the caller.

Reported by John Darrington.
src/data/csv-file-writer.c