Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-130647: Add--omit-header option to pygettext#130650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
StanFromIreland wants to merge8 commits intopython:main
base:main
Choose a base branch
Loading
fromStanFromIreland:omit-header

Conversation

StanFromIreland
Copy link
Contributor

@StanFromIrelandStanFromIreland commentedFeb 27, 2025
edited by bedevere-appbot
Loading

@tomasr8tomasr8 self-requested a reviewFebruary 27, 2025 19:20
@StanFromIreland
Copy link
ContributorAuthor

Also@serhiy-storchaka

@tomasr8

This comment was marked as off-topic.

@StanFromIreland
Copy link
ContributorAuthor

Anything else left to do here@tomasr8 ?

Copy link
Member

@tomasr8tomasr8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

StanFromIreland reacted with heart emoji
@StanFromIreland
Copy link
ContributorAuthor

Little reminder@serhiy-storchaka

Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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).

@StanFromIreland
Copy link
ContributorAuthor

Please use non-ASCII strings and non-UTF-8 source encoding for tests.

Might I ask why? The implementation does effect anything beyond the header, it is literally a singleif statement. The file is generated so we can verify whitespace, at Tomas's request.

@serhiy-storchaka
Copy link
Member

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 forgettext andpygettext, but this is a different issue.

@StanFromIreland
Copy link
ContributorAuthor

Why to add this feature at first place?

See the linked issue, this was discussed before.

we should ensure that it works with non-ASCII strings.

This feature just removes the POT header.

@StanFromIreland
Copy link
ContributorAuthor

Friendly ping@serhiy-storchaka :-)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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.

StanFromIreland reacted with thumbs up emoji
@StanFromIreland
Copy link
ContributorAuthor

@serhiy-storchaka Will this make it in 3.14?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

@tomasr8tomasr8tomasr8 approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@StanFromIreland@tomasr8@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp