Bugzilla – Attachment 123365 Details for
Bug 25078
Update DB process - wrap each DBRev inside a transaction and better error handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25078: Fix encoding issue with db_revs output
Bug-25078-Fix-encoding-issue-with-dbrevs-output.patch (text/plain), 1.08 KB, created by
Jonathan Druart
on 2021-08-02 10:30:10 UTC
(
hide
)
Description:
Bug 25078: Fix encoding issue with db_revs output
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-08-02 10:30:10 UTC
Size:
1.08 KB
patch
obsolete
>From a7e2591a51893272faffcb21db4551ff8ad12441 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 8 Jul 2021 16:01:41 +0200 >Subject: [PATCH] Bug 25078: Fix encoding issue with db_revs output > >From `perldoc -f open`: > >The scalars for in-memory files are treated as octet strings: unless the >file is being opened with truncation the scalar may not contain any code >points over 0xFF. > >So $out need to be decoded first in order to be used in other Perl >strings >--- > C4/Installer.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index 18310027b38..9ceba92cb49 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -20,7 +20,7 @@ package C4::Installer; > use Modern::Perl; > > use Try::Tiny; >-use Encode qw( encode is_utf8 ); >+use Encode qw( encode decode is_utf8 ); > use DBIx::RunSQL; > use YAML::XS; > use C4::Context; >@@ -736,6 +736,7 @@ sub update { > }; > > close $outfh; >+ $out = decode('UTF-8', $out); > > my $db_entry = { > bug_number => $db_rev->{bug_number}, >-- >2.20.1
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 25078
:
102521
|
116032
|
116033
|
116034
|
116208
|
116209
|
117084
|
121909
|
121910
|
121911
|
121982
|
121983
|
121984
|
122208
|
122322
|
122323
|
122324
|
122325
|
122326
|
122329
|
122665
|
122666
|
122667
|
122668
|
122669
|
122670
|
122671
|
122679
|
122680
|
122875
|
123356
|
123357
|
123358
|
123359
|
123360
|
123361
|
123362
|
123363
|
123364
| 123365 |
123366
|
123367
|
123850
|
123851
|
123853
|
123937
|
124269