Issue 1451341: msgfmt.py: fuzzy messages not correctly found (original) (raw)
In the msgfmt.py script which is installed in %PYTHON_HOME%\Tools\i18n (on Windows) on line 129 to 131 it says:
Record a fuzzy mark
if l[:2] == '#,' and l.find('fuzzy'): fuzzy = 1
this should be:
Record a fuzzy mark
if l[:2] == '#,' and l.find('fuzzy') > -1: fuzzy = 1
or all lines beginning with '#,' will be treated as fuzzy. Only change is the "> -1".
This applies to all versions of Python. It has been brought to my attention by Andrey Lebedev who found this in a product which uses a slightly modified msgfmt.py.