From be0a9637a2d311dd8d85b2a36fcfa2a2aff19ddd Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 9 Jun 2010 14:33:27 +0200 Subject: [PATCH] Bug 4512 for 3.0.x only (Encoding issue in downloaded data of guided reports) RESENT The line binmode STDOUT, ':utf8'; garbles the output. It was already utf8. The statement should be used on binary data, not on plain text. The statement occurred more frequently in older versions of the script; this last occurrence must be deleted too. --- reports/guided_reports.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index ad1ba6f2b8..4dc3911a75 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -382,7 +382,7 @@ elsif ($phase eq 'Run this report'){ } elsif ($phase eq 'Export'){ - binmode STDOUT, ':utf8'; + #binmode STDOUT, ':utf8'; #bug 4512 # export results to tab separated text or CSV my $sql = $input->param('sql'); # FIXME: use sql from saved report ID#, not new user-supplied SQL! -- 2.39.5