Bugzilla – Attachment 120212 Details for
Bug 28234
TestBuilder->build_sample_biblio does not deal correctly with encoding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[ALTERNATE] Bug 28234: TestBuilder->build_sample_biblio should set UTF-8 encoding for record
ALTERNATE-Bug-28234-TestBuilder-buildsamplebiblio-.patch (text/plain), 917 bytes, created by
Tomás Cohen Arazi
on 2021-04-27 11:25:27 UTC
(
hide
)
Description:
[ALTERNATE] Bug 28234: TestBuilder->build_sample_biblio should set UTF-8 encoding for record
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2021-04-27 11:25:27 UTC
Size:
917 bytes
patch
obsolete
>From a24319ccfaa9f18715a7c1e1c35a3a86058b3cfc Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 27 Apr 2021 08:24:57 -0300 >Subject: [PATCH] [ALTERNATE] Bug 28234: TestBuilder->build_sample_biblio > should set UTF-8 encoding for record > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/lib/TestBuilder.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index 26de949fb38..a39be708666 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -155,6 +155,8 @@ sub build_sample_biblio { > my $marcflavour = C4::Context->preference('marcflavour'); > > my $record = MARC::Record->new(); >+ $record->encoding( 'UTF-8' ); >+ > my ( $tag, $subfield ) = $marcflavour eq 'UNIMARC' ? ( 200, 'a' ) : ( 245, 'a' ); > $record->append_fields( > MARC::Field->new( $tag, ' ', ' ', $subfield => $title ), >-- >2.31.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 28234
:
120205
|
120212
|
120214
|
120215
|
120225
|
120226