Rocky Linux 9.3: unit tests fail because of PO file formatting #1315
Labels
A-Translation
Area: Documentation of, implementation of or actual translation of text
P-High
Priority: Issue to be solved before other
T-Bug
Type: Bug in software or error in test case description
Milestone
PR #1305 changed the formatting of the msgstrs in the PO files in order to make continous integration happy. Otherwise, the tests in
t/po-files.t
do not pass.But this change breaks the unit tests when I run them on Rocky Linux 9.3:
Reverting commit 7f6495d makes the
t/po-files.t
pass again:My comment on PR #1305 suggests that the change might have been due to a different line-breaking algorithm introduced somewhere between gettext-0.19 and 0.21. This turns out not to be quite true, because the version of gettext on my Rocky Linux system is also version 0.21. Either an Ubuntu-supplied patch changed the line-breaking algorithm, or something else is at play.
One possible course of action is to enable this test only in CI environments and disable it anywhere else. Ensuring that PO files are formatted in a consistent way when changes are committed to them is one thing. But in any other situations, unit tests should fail if and only if something about the end user’s environment may prevent the package from operating correctly (e.g. due to unforeseen platform differences); formatting of PO files is not one of those cases.
The text was updated successfully, but these errors were encountered: