Intention of code is that data is output in utf-8 requires an
encoding layer to ensure that. ':utf-8' flags the stream as utf-8
but does not ensure output characters are correctly encoded
---
 authorities/ysearch.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/authorities/ysearch.pl b/authorities/ysearch.pl
index ff6adbb..56ef8e2 100755
--- a/authorities/ysearch.pl
+++ b/authorities/ysearch.pl
@@ -35,7 +35,7 @@ use C4::Auth qw/check_cookie_auth/;
 
 my $query = new CGI;
 
-binmode STDOUT, ":utf8";
+binmode STDOUT, ':encoding(UTF-8)';
 print $query->header( -type => 'text/plain', -charset => 'UTF-8' );
 
 my ( $auth_status, $sessionID ) = check_cookie_auth( 
$query->cookie('CGISESSID'), { } );
-- 
1.7.7.6

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to