gh-130647: Add --omit-header option to pygettext - #130650
Conversation
|
Also @serhiy-storchaka |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Anything else left to do here @tomasr8 ? |
|
Little reminder @serhiy-storchaka |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Please use non-ASCII strings and non-UTF-8 source encoding for tests. The encoding should also be different from Latin1. Maybe iso-8859-15 with € in a string. Use both literal € and \u20ac (in different strings, so the error will be easier to identify).
Might I ask why? The implementation does effect anything beyond the header, it is literally a single |
|
Why to add this feature at first place? If it is for tests, we should ensure that it works with non-ASCII strings. Otherwise this option will be useless. We need also tests with non-ASCII strings for |
See the linked issue, this was discussed before.
This feature just removes the POT header. |
|
Friendly ping @serhiy-storchaka :-) |
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
serhiy-storchaka
left a comment
There was a problem hiding this comment.
The problem with this feature is that we are losing information about the .po file encoding, which is locale depending. Therefore, files generated on different computers may be incompatible. There is an issue with using the default file encoding in general, because it may be not compatible with the source file encoding (msgids and comments) and filesystem encoding (file names).
We can probably just ignore this for now. And then somehow solve all the encoding problems at once.
But adding a feature that contains an inherent flaw leaves a bitter aftertaste.
This comment was marked as duplicate.
This comment was marked as duplicate.
|
Friendly ping @serhiy-storchaka / @tomasr8 |
|
@serhiy-storchaka, anything else I should do here? |
|
This PR is stale because it has been open for 30 days with no activity. |
|
@StanFromIreland, you can merge this PR yourself. |
Requesting @tomasr8 :-)
--omit-headeroption #130647