[Koha-patches] [PATCH 1/2] Bug 6679 : fix 3 perl::critic warnings
Fischer, Katrin
Katrin.Fischer at bsz-bw.de
Thu Sep 22 07:53:32 CEST 2011
Please ignore.
-----Original Message-----
From: koha-patches-bounces at lists.koha-community.org on behalf of Katrin Fischer
Sent: Thu 22.09.2011 07:50
To: koha-patches at lists.koha-community.org
Cc: Maxime Pelletier
Subject: [Koha-patches] [PATCH 1/2] Bug 6679 : fix 3 perl::critic warnings
From: Maxime Pelletier <maxime.pelletier at libeo.com>
Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
---
circ/overdue.pl | 2 +-
circ/ypattrodue-attr-search-authvalue.pl | 2 +-
circ/ysearch.pl | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/circ/overdue.pl b/circ/overdue.pl
index 18851a6..2bdafe1 100755
--- a/circ/overdue.pl
+++ b/circ/overdue.pl
@@ -351,7 +351,7 @@ if ($noreport) {
}
if ($op eq 'csv') {
- binmode(STDOUT, ":utf8");
+ binmode(STDOUT, ":encoding(UTF-8)");
my $csv = build_csv(\@overduedata);
print $input->header(-type => 'application/vnd.sun.xml.calc',
-encoding => 'utf-8',
diff --git a/circ/ypattrodue-attr-search-authvalue.pl b/circ/ypattrodue-attr-search-authvalue.pl
index 5ff1cd9..f8d77c5 100755
--- a/circ/ypattrodue-attr-search-authvalue.pl
+++ b/circ/ypattrodue-attr-search-authvalue.pl
@@ -32,7 +32,7 @@ $attrcode =~ s|^/||;
my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { circulate => '*' } );
exit 0 if $auth_status ne "ok";
-binmode STDOUT, ":utf8";
+binmode STDOUT, ":encoding(UTF-8)";
print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
print STDERR ">> CALLING $0 (attrcode=$attrcode, query=$query)\n" if $debug;
diff --git a/circ/ysearch.pl b/circ/ysearch.pl
index f8fc52a..549a547 100755
--- a/circ/ysearch.pl
+++ b/circ/ysearch.pl
@@ -33,7 +33,7 @@ use C4::Auth qw/check_cookie_auth/;
my $input = new CGI;
my $query = $input->param('query');
-binmode STDOUT, ":utf8";
+binmode STDOUT, ":encoding(UTF-8)";
print $input->header(-type => 'text/plain', -charset => 'UTF-8');
my ($auth_status, $sessionID) = check_cookie_auth($input->cookie('CGISESSID'), { circulate => '*' });
--
1.7.4.1
_______________________________________________
Koha-patches mailing list
Koha-patches at lists.koha-community.org
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20110922/55938318/attachment.htm>
More information about the Koha-patches
mailing list