[Koha-bugs] [Bug 13264] Test about UTF-8 (bug 11944)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 2 13:18:01 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13264
--- Comment #77 from Jonathan Druart <jonathan.druart at biblibre.com> ---
I tested on v5.18.2 and I did not get any failures caused by double encoded
problems.
The following diff makes pass all tests:
diff --git a/t/db_dependent/www/search_utf8.t
b/t/db_dependent/www/search_utf8.t
index be5ac96..6136950 100644
--- a/t/db_dependent/www/search_utf8.t
+++ b/t/db_dependent/www/search_utf8.t
@@ -246,7 +246,7 @@ sub test_search{
$intra_text = $agent->text();
like( $intra_text, qr|Publisher: $publisher|, );
- my $expected_base = q|search.pl\?idx=kw&q=| . uri_escape_utf8( $publisher
);
+ my $expected_base = q|q=| . uri_escape_utf8( $publisher );
$agent->base_like(qr|$expected_base|, );
ok ( ( length(Encode::encode('UTF-8', $intra_text)) != length($intra_text)
) , 'UTF-8 are multi-byte. Goog') ;
@@ -269,7 +269,9 @@ sub test_search{
$opac_text = $agent->text();
like( $opac_text, qr|Publisher: $publisher|, );
- $expected_base = q|opac-search.pl\?idx=&q=| . uri_escape_utf8( $publisher
);
+ $expected_base = q|q=| . uri_escape_utf8( $publisher );
+ my $base = $agent->base;
+ warn $base;
$agent->base_like(qr|$expected_base|, );
ok ( ( length(Encode::encode('UTF-8', $opac_text)) != length($opac_text) )
, 'UTF-8 are multi-byte. Goog') ;
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list