csv pusher
authorBill Erickson <berick@esilibrary.com>
Fri, 7 Dec 2012 19:06:20 +0000 (14:06 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 7 Dec 2012 19:06:20 +0000 (14:06 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/support-scripts/csv_notify_pusher.pl

index 067002a..91741e4 100755 (executable)
@@ -6,7 +6,6 @@ use OpenSRF::AppSession;
 use OpenILS::Utils::CStoreEditor;
 use OpenILS::Utils::Cronscript;
 use OpenILS::Utils::RemoteAccount;
-binmode(STDOUT, ":utf8");
 
 my %defaults = (
     'osrf-config=s'     => '/openils/conf/opensrf_core.xml',
@@ -64,6 +63,8 @@ if ($verbose) {
 open(OUTFILE, ">$out_file") or 
     die "unable to open out-file '$out_file' for writing: $!\n";
 
+binmode(OUTFILE, ":utf8");
+
 my %date_filter;
 $date_filter{run_time} = {'>=' => $start_date} if $start_date;
 $date_filter{run_time} = {'<' => $end_date} if $end_date;