Bugzilla – Attachment 45457 Details for
Bug 15290
SQL reports encoding problem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15290: SQL reports headers encoding problem
Bug-15290-SQL-reports-headers-encoding-problem.patch (text/plain), 1.78 KB, created by
Frédéric Demians
on 2015-12-07 15:58:50 UTC
(
hide
)
Description:
Bug 15290: SQL reports headers encoding problem
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2015-12-07 15:58:50 UTC
Size:
1.78 KB
patch
obsolete
>From 99b49178cda8cb363af5746a34b8bebf43899418 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Thu, 3 Dec 2015 11:23:54 -0300 >Subject: [PATCH] Bug 15290: SQL reports headers encoding problem >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: > >- Create an SQL report with column names containing UTF characters >- Run the report >=> FAIL: The column names are double encoded >- Export the report >=> FAIL: The column names are double encoded in the exported file >- Apply the patch >- Re-run the report (reload works) >=> SUCCESS: Encoding correct >- Export the report >=> SUCCESS: Encoding correct >- Sign off :-D > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> >--- > reports/guided_reports.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl >index cbdecda..361c518 100755 >--- a/reports/guided_reports.pl >+++ b/reports/guided_reports.pl >@@ -771,7 +771,7 @@ elsif ($phase eq 'Run this report'){ > unless ($sth) { > die "execute_query failed to return sth for report $report_id: $sql"; > } else { >- my $headers= header_cell_loop($sth); >+ my $headers = header_cell_loop($sth); > $template->param(header_row => $headers); > while (my $row = $sth->fetchrow_arrayref()) { > my @cells = map { +{ cell => $_ } } @$row; >@@ -948,7 +948,7 @@ sub header_cell_values { > > # pass $sth, get back a TMPL_LOOP-able set of names for the column headers > sub header_cell_loop { >- my @headers = map { +{ cell => $_ } } header_cell_values (shift); >+ my @headers = map { +{ cell => decode('UTF-8',$_) } } header_cell_values (shift); > return \@headers; > } > >-- >2.6.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15290
:
45353
|
45384
|
45385
|
45456
|
45457
|
45501
|
45502