]> git.koha-community.org Git - koha.git/commit
Bug 6752: Be stricter with utf-8 encoding of output
authorColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 6 Jul 2011 07:24:28 +0000 (08:24 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 27 Jan 2012 11:11:06 +0000 (12:11 +0100)
commit263dded818da9d3ad0fa702f7bc848707e181211
treec356724735aeb12af58dc1eb4820290ec929a89f
parent8f698965b1f368967b878db8adb3a6f785fa5f26
Bug 6752: Be stricter with utf-8 encoding of output

use encoding(UTF-8) rather than utf-8 for stricter
encoding
Marking output as ':utf8' only flags the data as utf8
using :encoding(UTF-8) also checks it as valid utf-8
see binmode in perlfunc for more details
In accordance with the robustness principle input
filehandles have not been changed as code may make
the undocumented assumption that invalid utf-8 is present
in the imput
Fixes errors reported by t/00-testcritic.t
Where feasable some filehandles have been made lexical rather than
reusing global filehandle vars

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
17 files changed:
admin/aqplan.pl
authorities/authorities-list.pl
misc/cronjobs/MARC21_parse_test.pl
misc/cronjobs/overdue_notices.pl
misc/migration_tools/22_to_30/export_Authorities_xml.pl
misc/migration_tools/bulkmarcimport.pl
misc/migration_tools/rebuild_zebra.pl
misc/sax_parser_test.pl
misc/translator/xgettext.pl
opac/ilsdi.pl
opac/oai.pl
reports/guided_reports.pl
reports/serials_stats.pl
svc/bib
svc/new_bib
t/db_dependent/lib/KohaTest.pm
tools/export.pl