(bug #3573) use delimiter syspref generating overdues csv

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Nahuel ANGELINETTI 2009-09-02 17:09:21 +02:00 committed by Henri-Damien LAURENT
parent b450285003
commit 78a2b2cb1e
1 changed files with 2 additions and 1 deletions

View File

@ -284,7 +284,8 @@ binmode( STDOUT, ":utf8" );
our $csv; # the Text::CSV_XS object
our $csv_fh; # the filehandle to the CSV file.
if ( defined $csvfilename ) {
$csv = Text::CSV_XS->new( { binary => 1 } );
my $sep_char = C4::Context->preference('delimiter') || ',';
$csv = Text::CSV_XS->new( { binary => 1 , sep_char => $sep_char } );
if ( $csvfilename eq '' ) {
$csv_fh = *STDOUT;
} else {