I am not sure what happened here, but adding strict for TmplTokenizer.pm breaks a test for translation: kohadev-koha@5dbfd5c26b19:/kohadevbox/koha$ prove xt/author/translatable-templates.t xt/author/translatable-templates.t .. 1/? # Failed test 'opac_bootstrap templates are translatable' # at xt/author/translatable-templates.t line 91. # /tmp/nUR3OD9D9y:19466:8: invalid multibyte sequence # # msgmerge: found 1 fatal error # xt/author/translatable-templates.t .. 2/? # Failed test 'staff_prog templates are translatable' # at xt/author/translatable-templates.t line 91. # /tmp/DdbDRQTBzl:6111:13: invalid multibyte sequence # # /tmp/DdbDRQTBzl:6122:13: invalid multibyte sequence # # /tmp/DdbDRQTBzl:10911:14: invalid multibyte sequence # # /tmp/DdbDRQTBzl:11301:14: invalid multibyte sequence # # /tmp/DdbDRQTBzl:49459:66: invalid multibyte sequence # # /tmp/DdbDRQTBzl:65223:27: invalid multibyte sequence # # /tmp/DdbDRQTBzl:88587:10: invalid multibyte sequence # # /tmp/DdbDRQTBzl:94544:43: invalid multibyte sequence # # /tmp/DdbDRQTBzl:94544:71: invalid multibyte sequence # # /tmp/DdbDRQTBzl:94549:8: invalid multibyte sequence # # msgmerge: found 10 fatal errors # # Looks like you failed 2 tests of 2. xt/author/translatable-templates.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Test Summary Report ------------------- xt/author/translatable-templates.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=1, Tests=2, 8 wallclock secs ( 0.02 usr 0.01 sys + 8.55 cusr 0.08 csys = 8.66 CPU) Result: FAIL
Created attachment 96896 [details] [review] Bug 24365: (bug 24217 follow-up) Fix encoding issue for translator script I am not sure what happened here, but adding strict for TmplTokenizer.pm breaks a test for translation. It has been caught by a failing test: % prove xt/author/translatable-templates.t will display lines "invalid multibyte sequence" I did a diff between the generated files and found: < msgid "Ã rbok" --- > msgid "Årbok" Which made me think of an encoding issue. Specifying the encoding when write open the file fixes the problem. Test plan: % prove xt/author/translatable-templates.t must return green
Trivial fix, PQA and Pushing
Nice work everyone! Pushed to master for 20.05
not backported to 19.11.x