Bugzilla – Attachment 22005 Details for
Bug 11054
Creating a child record has problems with accented Latin characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-11054-Specify-utf8-encoding-when-creating-a-chil.patch (text/plain), 1.15 KB, created by
Colin Campbell
on 2013-10-15 14:32:15 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2013-10-15 14:32:15 UTC
Size:
1.15 KB
patch
obsolete
>From 259cdfbf34d06bf9daf6dc4f4a8f0a62f6a494b6 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Tue, 15 Oct 2013 15:09:08 +0100 >Subject: [PATCH] Bug 11054: Specify utf8 encoding when creating a child record > >When the only non-ascii characters in a new child record >are latin + diacritic in the range covered by Latin-1 they >are not being added to a new child record correctly encoded. >Explicitly setting the record's encodiing ensures that >they are interpreted correctly. > >see "Unicode Bug" in perldoc perlunicode for background on >why these characters are special >--- > cataloguing/addbiblio.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index cb40396..841c6c1 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -821,6 +821,7 @@ if ($hostbiblionumber) { > if ($parentbiblio) { > my $marcflavour = C4::Context->preference('marcflavour'); > $record = MARC::Record->new(); >+ $record->encoding( 'UTF-8' ); > my $hostfield = prepare_host_field($parentbiblio,$marcflavour); > if ($hostfield) { > $record->append_fields($hostfield); >-- >1.8.3.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 11054
:
22005
|
22006
|
22317
|
22318
|
22449