From c7744de9f2f0de1844f0e28b879bb71087894000 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 11 Feb 2021 10:10:32 +0100 Subject: [PATCH] Bug 22824: Fixing first error in tests There was an encoding issue. The parent bug report have been fixed, see bug 27673 and patches related to Encode Signed-off-by: Kyle M Hall Signed-off-by: Julian Maurice Signed-off-by: Martin Renvoize --- t/db_dependent/yaml.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/yaml.t b/t/db_dependent/yaml.t index ddb2b63da9..661d5edae2 100755 --- a/t/db_dependent/yaml.t +++ b/t/db_dependent/yaml.t @@ -3,6 +3,7 @@ use Test::More; use YAML::XS; use Template; +use Encode; use utf8; my $template = Template->new( ENCODING => 'UTF-8' ); @@ -11,7 +12,7 @@ my $vars; my $output; $template->process( 't/db_dependent/data/syspref.pref', $vars, \$output ); -my $yaml = YAML::XS::Load( $output ); +my $yaml = YAML::XS::Load( Encode::encode_utf8( $output ) ); my $syspref_1 = $yaml->{Test}->{Testing}->[0]; my $syspref_2 = $yaml->{Test}->{Testing}->[1]; my $syspref_3 = $yaml->{Test}->{Testing}->[2]; -- 2.20.1