Bugzilla – Attachment 40504 Details for
Bug 14431
Encoding issues - search in staff
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14431: FIX encoding issues in search (staff client)
Bug-14431-FIX-encoding-issues-in-search-staff-clie.patch (text/plain), 1.96 KB, created by
Mark Tompsett
on 2015-06-23 03:13:46 UTC
(
hide
)
Description:
Bug 14431: FIX encoding issues in search (staff client)
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2015-06-23 03:13:46 UTC
Size:
1.96 KB
patch
obsolete
>From e9ac855bca7a84d4fb0b35a6e9de865bd5675090 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@koha-community.org> >Date: Mon, 22 Jun 2015 12:45:50 +0200 >Subject: [PATCH] Bug 14431: FIX encoding issues in search (staff client) >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Note that this does not appears at the OPAC. > >We will need 2 different testers here, the results seem to depend on the >Encode version. > >0/ Determine your Encode version (`pmvers Encode`). >If you have 2.60: >1) /cgi-bin/koha/catalogue/search.pl?q=ééé&op=Submit >You should get >" No results match your search for 'kw,wrdl: ���' in my library Catalog." >2) /cgi-bin/koha/catalogue/search.pl?q=ຠ>You should get >Cannot decode string with wide characters at >/usr/lib/i386-linux-gnu/perl/5.20/Encode.pm line 215. > >If you have <2.60 (? not sure here): >1) /cgi-bin/koha/catalogue/search.pl?q=ééé&op=Submit >You should not get encoding problems. >2) /cgi-bin/koha/catalogue/search.pl?q=ຠ>You should not get encoding problems. > >Apply this patch, try again 1 and 2. >If the Encode version is >=2.60, the encoding issues should be fixed. >If not, please detail if there are any regression. > >NOTE: Tested on Ubuntu 14.04, Debian 8, and Debian 7. See comment #3. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > catalogue/search.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index 006a1d4..1abacb6 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -414,7 +414,7 @@ if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) { > } > > # an operand can be a single term, a phrase, or a complete ccl query >-my @operands = map Encode::decode_utf8( uri_unescape($_) ), $cgi->param('q'); >+my @operands = map uri_unescape($_), $cgi->param('q'); > > # limits are use to limit to results to a pre-defined category such as branch or language > my @limits = map uri_unescape($_), $cgi->param('limit'); >-- >2.1.4
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 14431
:
40456
|
40504
|
40693