Bugzilla – Attachment 41632 Details for
Bug 14584
Encoding broken with system preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14584: Encoding broken with system preferences
Bug-14584-Encoding-broken-with-system-preferences.patch (text/plain), 1.46 KB, created by
Jonathan Druart
on 2015-08-18 17:41:05 UTC
(
hide
)
Description:
Bug 14584: Encoding broken with system preferences
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-08-18 17:41:05 UTC
Size:
1.46 KB
patch
obsolete
>From 94d3cc692f06e774b4cf1aedbc7b84cbee8e0580 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 18 Aug 2015 18:40:31 +0100 >Subject: [PATCH] Bug 14584: Encoding broken with system preferences >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The pref are double encoded. > >From bug 12411: >"This will fix the encoding issues existing in 3.14 and 3.16. >The issue still appear in master but is fixed by bug 11944." > >They should not have been pushed together. > >Test plan: >1) You need an accentuated language installed. >2) Go to NoLoginInstructions pref, and add some accentuated message like >"Hélo médames é mècieüx" >3) refresh opac home page, message should be gibberish >4) apply patch. Message should be ok now. >--- > Koha/Template/Plugin/Koha.pm | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/Koha/Template/Plugin/Koha.pm b/Koha/Template/Plugin/Koha.pm >index ecb6266..86f9e77 100644 >--- a/Koha/Template/Plugin/Koha.pm >+++ b/Koha/Template/Plugin/Koha.pm >@@ -18,7 +18,6 @@ package Koha::Template::Plugin::Koha; > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use Encode qw( encode ); > > use base qw( Template::Plugin ); > >@@ -43,7 +42,7 @@ is necessary. > > sub Preference { > my ( $self, $pref ) = @_; >- return encode('UTF-8', C4::Context->preference( $pref ) ); >+ return C4::Context->preference( $pref ); > } > > sub Version { >-- >2.1.0
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 14584
:
41113
|
41632
|
41641
|
42183