http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13264
--- Comment #77 from Jonathan Druart <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
