We need to translate 'tabulation' to "\t" before creating our file with Text::CSV
Created attachment 57342 [details] [review] Bug 17590 - Exporting reports as CSV with 'delimiter' SysPref set to 'tabulation' creates files with 't' as separator To test: Set 'delimiter' system preference to 'tabs' Export a report as csv Open the file in text editor and note fields separated by character 't' Apply patch Export report as CSV Open file in text editor and note tabs are used to separate fields
Created attachment 57407 [details] [review] [SIGNED-OFF] Bug 17590 - Exporting reports as CSV with 'delimiter' SysPref set to 'tabulation' creates files with 't' as separator To test: Set 'delimiter' system preference to 'tabs' Export a report as csv Open the file in text editor and note fields separated by character 't' Apply patch Export report as CSV Open file in text editor and note tabs are used to separate fields Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> tabs now, no errors.
Hm I cannot recreate your problem. Your test plan "Export your report" is far from clear. Do I need to set some preferences to get this Export option?
Created attachment 57625 [details] [review] Bug 17590 - Exporting reports as CSV with 'delimiter' SysPref set to 'tabulation' creates files with 't' as separator To test: Set 'delimiter' system preference to 'tabs' Export a report as csv Open the file in text editor and note fields separated by character 't' Apply patch Export report as CSV Open file in text editor and note tabs are used to separate fields Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> tabs now, no errors. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
(In reply to Marcel de Rooy from comment #3) > Hm I cannot recreate your problem. > Your test plan "Export your report" is far from clear. > Do I need to set some preferences to get this Export option? It's the "Download" link on /reports/guided_reports.pl?reports=1&phase=Run%20this%20report
Note that it would make sense to remove the "tab separated text" entry if the pref is set to tabulation.
Pushed to master for 16.11, thanks Nick!
Pushed to 3.22.x, will be in 3.22.13
Pushed to 16.05.x, for 16.05.06 release