Bugzilla – Attachment 32416 Details for
Bug 9859
C4::Charset -> nsb_clean() remove Â
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0002-Bug-9859-Follow-up-Adding-a-simple-unit-test-for-nsb.patch
0002-Bug-9859-Follow-up-Adding-a-simple-unit-test-for-nsb.patch (text/plain), 990 bytes, created by
Katrin Fischer
on 2014-10-16 14:14:48 UTC
(
hide
)
Description:
0002-Bug-9859-Follow-up-Adding-a-simple-unit-test-for-nsb.patch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-10-16 14:14:48 UTC
Size:
990 bytes
patch
obsolete
>From 3264fb75b2ec7d3cde0868551fb1b72f6fb4584a Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Thu, 16 Oct 2014 11:10:50 -0300 >Subject: [PATCH 2/2] Bug 9859: Follow-up - Adding a simple unit test for > nsb_clean > >This tests uses the example given on the perl file on the >bug report. >--- > t/Charset.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/Charset.t b/t/Charset.t >index 27b2a32..cd0dc1e 100755 >--- a/t/Charset.t >+++ b/t/Charset.t >@@ -17,9 +17,12 @@ > > use Modern::Perl; > >-use Test::More tests => 10; >+use Test::More tests => 11; > use MARC::Record; > >+use utf8; >+use open ':std', ':encoding(utf8)'; >+ > BEGIN { > use_ok('C4::Charset'); > } >@@ -55,4 +58,6 @@ ok( utf8::is_utf8($record->subfield('100','a')) && > utf8::is_utf8($record->subfield('245','a')), > 'SetUTF8Flag sets the UTF-8 flag to all subfields' ); > >+is( nsb_clean("ÂLe Moyen Ãge"), "Le Moyen Ãge", "nsb_clean removes  and Â" ); >+ > 1; >-- >1.9.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 9859
:
16465
|
16469
|
17399
|
17407
|
32415
| 32416