Browse Source

Bug 22824: Fix encoding of misc/admin/koha-preferences output

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Julian Maurice 3 years ago
committed by Jonathan Druart
parent
commit
9aa20245fc
  1. 7
      misc/admin/koha-preferences

7
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 );

Loading…
Cancel
Save