[issue40835] Incorrect handling for msgctxt in msgfmt.py

2020-05-31 Thread Doug Addy
Doug Addy added the comment: And a patch: After the end of a message entry the options for the next line are: 1. A comment - we already reset msgctxt to None here 2. A blank line - we can have empty lines anywhere we want, so do nothing 3. A new msgctxt line - Set msgctxt to the new context 4

[issue40835] Incorrect handling for msgctxt in msgfmt.py

2020-05-31 Thread Doug Addy
Doug Addy added the comment: Test po file included -- Added file: https://bugs.python.org/file49205/test.po ___ Python tracker <https://bugs.python.org/issue40

[issue40835] Incorrect handling for msgctxt in msgfmt.py

2020-05-31 Thread Doug Addy
New submission from Doug Addy : Running msgfmt.py with the attached po file will produce an incorrect context for the entry "test". Looking at the script, we require a comment to follow a contexted section for the context to be cleared. The gettext documentation makes clea