[Koha-bugs] [Bug 24365] Using strict from TmplTokenizer.pm broke the translator script

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 7 15:54:15 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24365

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 96896
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96896&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list