From 3cda3e8531d3ccbaa3ae8ead39edbb140ef81bfd Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 19 Feb 2021 10:48:42 +0100 Subject: [PATCH] Bug 22824: Fix encoding of misc/admin/koha-preferences output Signed-off-by: Jonathan Druart Signed-off-by: Julian Maurice Signed-off-by: Martin Renvoize --- misc/admin/koha-preferences | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/misc/admin/koha-preferences b/misc/admin/koha-preferences index af2cce2b7c..a2062ba57f 100755 --- a/misc/admin/koha-preferences +++ b/misc/admin/koha-preferences @@ -26,7 +26,6 @@ use C4::Log; use Getopt::Long; use Pod::Usage; use YAML::XS; -use Encode; our %NOT_SET_PREFS = map { $_, 1 } qw( Version ); =head1 NAME @@ -214,11 +213,7 @@ my %commands = ( 'o:s' => \$outfile ) || _print_usage( 1 ); - if ( $outfile ) { - YAML::XS::DumpFile( $outfile, GetPreferences() ); - } else { - print Encode::decode_utf8(YAML::XS::Dump(GetPreferences())); - } + YAML::XS::DumpFile( $outfile || \*STDOUT, GetPreferences() ); }, load => sub { my ( $infile, $force_version ); -- 2.20.1