bugPSPP - Bugs: bug #40223, save translate type=csv ignores...


bug #40223: save translate type=csv ignores crlf settings

Submitted by:  None
Submitted on:  Wed 09 Oct 2013 06:25:29 PM UTC  
Category:  Output Driver Severity:  5 - Average
Status:  None Assigned to:  None
Open/Closed:  Open Release:  None
Effort:  0.00

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 09 Oct 2013 06:25:29 PM UTC, original submission:

SAVE TRANSLATE /TYPE=CSV always output LF as line end

It must be FILE HANDLE /ENDS={value} or CRLF on Windows by default

Suggested fix:

Instead of putc('\n');
in csv-file-writer.c / csv_write_case()
and csv-file-writer.c / write_var_names()

must be same logic as in

something like:
if (w->opts->line_ends == FH_END_CRLF)...

Of course, w->opts must have line_ends initialized in csv_writer_options_init().


Use WRITE instead of SAVE TRANSLATED until problem fixed. WRITE works as expected.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.3