bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #40223] save translate type=csv ignores crlf settings


From: anonymous
Subject: PSPP-BUG: [bug #40223] save translate type=csv ignores crlf settings
Date: Wed, 09 Oct 2013 18:25:30 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0

URL:
  <http://savannah.gnu.org/bugs/?40223>

                 Summary: save translate type=csv ignores crlf settings
                 Project: PSPP
            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
         Discussion Lock: Any
                 Release: None
                  Effort: 0.00

    _______________________________________________________

Details:

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

Expected:
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 
  data-writer.c/dfm_put_record()
     case FH_MODE_TEXT:

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

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

Workaround:

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40223>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]