◐ Shell
reader mode source ↗
Skip to content

bpo-47000: Add locale.getencoding()#32068

Merged
methane merged 13 commits into
python:mainfrom
methane:locale-get-encoding
Apr 9, 2022
Merged

bpo-47000: Add locale.getencoding()#32068
methane merged 13 commits into
python:mainfrom
methane:locale-get-encoding

Conversation

@methane

@methane methane commented Mar 23, 2022

Copy link
Copy Markdown
Member

@methane methane force-pushed the locale-get-encoding branch from 04fd5b0 to 8b50eb1 Compare April 4, 2022 03:16
@methane methane changed the title bpo-47000: Add locale.get_encoding() Apr 4, 2022
@methane methane changed the title bpo-47000: Add locale.getencoding() Apr 4, 2022
@methane methane force-pushed the locale-get-encoding branch from ffc9ba1 to a0204c2 Compare April 4, 2022 04:58
@methane methane requested a review from vstinner April 6, 2022 03:27

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

In some places, "utf-8" is used, in some other places "UTF-8" is used. I suggest to use lower case "utf-8" everywhere: doc, C code, _Py_STR(), etc. You may have to update getpreferredencoding() doc.

methane and others added 2 commits April 7, 2022 12:39
Co-authored-by: Victor Stinner <vstinner@python.org>
@methane methane force-pushed the locale-get-encoding branch from 39e99bc to 7720b10 Compare April 7, 2022 04:18

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LGTM. Thanks.

IMO it's important that the current is complete and explains well this function, since it's a complex topic. If the doc is unclear, people will misuse it.

Thanks for adding "See also the filesystem encoding and error handler" in the glossary, that's good!

I'm not sure why the PR is still a draft.

@methane methane marked this pull request as ready for review April 9, 2022 00:54
@methane methane merged commit 6773203 into python:main Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants