Bugzilla – Attachment 116744 Details for
Bug 22824
Replace YAML::Syck with YAML::XS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22824: Fixing first error in tests
Bug-22824-Fixing-first-error-in-tests.patch (text/plain), 1.14 KB, created by
Kyle M Hall (khall)
on 2021-02-11 14:46:43 UTC
(
hide
)
Description:
Bug 22824: Fixing first error in tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-02-11 14:46:43 UTC
Size:
1.14 KB
patch
obsolete
>From fbdb4de94b3a8c4f5b391cde80c4990edd53e120 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <kyle@bywatersolutions.com> >--- > 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.24.1 (Apple Git-126)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22824
:
116722
|
116723
|
116724
|
116725
|
116726
|
116727
|
116728
|
116729
|
116730
|
116731
|
116732
|
116733
|
116734
|
116735
|
116736
|
116741
|
116742
|
116743
|
116744
|
116745
|
116746
|
116747
|
116748
|
116749
|
116750
|
116751
|
116752
|
116753
|
116754
|
116755
|
116756
|
116881
|
116882
|
116883
|
116884
|
117037
|
117039
|
117040
|
117041
|
117042
|
117043
|
117044
|
117045
|
117046
|
117047
|
117048
|
117049
|
117050
|
117051
|
117052
|
117053
|
117054
|
117055
|
117056
|
117057
|
117058
|
117636
|
117637
|
117638
|
117639
|
117640
|
117641
|
117642
|
117643
|
117644
|
117645
|
117646
|
117647
|
117648
|
117649
|
117650
|
117651
|
117652
|
117653
|
117664
|
117666