Migrating Pology to Python 3

Karl Ove Hufthammer karl at huftis.org
Fri Oct 7 20:58:39 BST 2022


Adrian Chaves skreiv 07.10.2022 17:25:
> I will still be available today and tomorrow all day in case further 
> changes are needed, so if you have not tested everything you use yet, 
> please do so as soon as you can.

I‘ve found a bug in the posieve script for the check-rules command. For 
Norwegian Nynorsk (language code nn) we have a rule (in 
pology/lang/nn/rules/ortography.rules) with this trigger:

[\b …]

This will catch strings that have a *normal* space before …, e.g., 
‘Search …’. (The space should instead be a non-breaking space, to avoid 
the string being broken over two lines between ‘Search’ and ‘…’.)

In Python 2, the rule worked fine. But in Python 3, it’s *also* 
triggered by strings that have a non-breaking space.

Test case:

posieve check-rules 
l10n-support/nn/summit/messages/akonadi-contacts/akonadicontact5.po

In Python 2, this detects no problems. In Python 3, it detects 7 problems.


-- 
Karl Ove Hufthammer



More information about the kde-i18n-doc mailing list