Description
Jonathan Druart
2021-04-27 08:45:41 UTC
Created attachment 120205 [details] [review] Bug 28234: Fix encoding issues in build_sample_biblio Found when working on bug 28230. The tests generated a warning no mapping found for [0x2764] at position 4 in hell❤️ g0=ASCII_DEFAULT g1=EXTENDED_LATIN at /usr/share/perl5/MARC/Charset.pm line 308. The MARC::Record built by TestBuilder did not set the leader and unicode flag Created attachment 120212 [details] [review] [ALTERNATE] Bug 28234: TestBuilder->build_sample_biblio should set UTF-8 encoding for record Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 120214 [details] [review] Bug 28234: Regression tests Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 120215 [details] [review] Bug 28234: TestBuilder->build_sample_biblio should set UTF-8 encoding for record This patch makes the build_sample_biblio method, correctly set the UTF-8 flag for the MARC::Record object. Tests are added. To test: 1. Apply the regression tests patch 2. Run: $ kshell k$ prove t/db_dependent/TestBuilder.t FAIL: Tests fail! An unexpected encoding warning shows 3. Apply this patch 4. Repeat 2 => SUCCESS: No warning! Tests pass! 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 120225 [details] [review] Bug 28234: Regression tests Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Created attachment 120226 [details] [review] Bug 28234: TestBuilder->build_sample_biblio should set UTF-8 encoding for record This patch makes the build_sample_biblio method, correctly set the UTF-8 flag for the MARC::Record object. Tests are added. To test: 1. Apply the regression tests patch 2. Run: $ kshell k$ prove t/db_dependent/TestBuilder.t FAIL: Tests fail! An unexpected encoding warning shows 3. Apply this patch 4. Repeat 2 => SUCCESS: No warning! Tests pass! 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Good catch, works as expected. Signing off I think we can safely go straight for QA on this one.. Pushed to master for 21.05, thanks to everybody involved! Pushed to 20.11.x for 20.11.06 Pushed to 20.05.x for 20.05.12 Not backported to oldoldstable (19.11.x). Feel free to ask if it's needed. |