Bug 42640: Script search_for_data_inconsistencies.pl use binmode UTF-8
Like Bug 32012 for runreport.pl the script search_for_data_inconsistencies.pl should use binmode UTF-8 to correctly display datas.
Test plan:
1) Edit an authorised value to add some diacritics in code, in "LOC" for example
2) Edit an item to use this code
3) Delete this authorised value
4) Run misc/maintenance/search_for_data_inconsistencies.pl
=> Check you have a correct message with diacritics
Signed-off-by: Chris Mathevet <chris.mathevet@inLibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2739a741fa)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
parent
3bf555f09a
commit
569051c27a
|
|
@ -29,6 +29,8 @@ use Koha::Patrons;
|
|||
use C4::Biblio qw( GetMarcFromKohaField );
|
||||
use Koha::Database::DataInconsistency;
|
||||
|
||||
binmode STDOUT, ":encoding(UTF-8)";
|
||||
|
||||
{
|
||||
my $items = Koha::Items->search;
|
||||
my @errors = Koha::Database::DataInconsistency->invalid_item_library($items);
|
||||
|
|
|
|||
Loading…
Reference in New Issue