-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-28180: Implementation for PEP 538 #659
Merged
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
b5d125b
WIP: PEP 538 reference implementation
ncoghlan 78c17a7
Fix test case failures
ncoghlan 721b27f
Merge remote-tracking branch 'origin/master' into pep538-coerce-c-locale
ncoghlan 16a4415
Merge branch 'master' into pep538-coerce-c-locale
ncoghlan d283de1
Clarify locale coercion warnings
ncoghlan f7a03fe
Avoid -Wformat-security warning
ncoghlan fe92a29
Support running tests under 'LANG=C'
ncoghlan 64d9d2f
Suppress locale warning for PYTHONCOERCECLOCALE=0
ncoghlan 384a146
Add test case for library runtime warning
ncoghlan b4f3a34
Add C locale coercion and warning build flags
ncoghlan 4d684a6
Always use C.UTF-8 on Android
ncoghlan 1c3a270
Fix PYTHONCOERCECLOCALE docs
ncoghlan 7626fcf
Use Py_SetStandardStreamEncoding instead of PYTHONIOENCODING
ncoghlan d12b412
Some test cleanups suggested by Barry
ncoghlan ec4f2ea
Use more precise name for test file
ncoghlan 4e6d502
Check standard stream settings in locale coercion tests
ncoghlan ccfc83f
Use US spelling
ncoghlan b173af3
Helper function to query PYTHONCOERCECLOCALE
ncoghlan 501a829
Merge remote-tracking branch 'origin/master' into pep538-coerce-c-locale
ncoghlan d099a52
Fix ReST markup
ncoghlan 762a09b
Fix Py_DEBUG/Py_SetStandardStreamEncoding compatibility problem
ncoghlan 820bfad
Restore Windows _testembed compatibility
ncoghlan 6a00ce6
Merge remote-tracking branch 'origin/master' into pep538-coerce-c-locale
ncoghlan 188e780
Update to latest version of PEP 538
ncoghlan 476a781
Change locale coercion to always respect LC_ALL
ncoghlan 123ba24
Merge remote-tracking branch 'origin/master' into pep538-coerce-c-locale
ncoghlan 939ba0a
Don't set LANG during locale coercion
ncoghlan 6d564c9
Update docs to match current behaviour
ncoghlan 53bd6da
Address CI failure and review comments
ncoghlan cad0669
OK, two-use function :)
ncoghlan 421516f
Still check for the C locale in Windows
ncoghlan e48a378
Check actual control flow on Appveyor
ncoghlan f62dbd8
Merge remote-tracking branch 'origin/master' into pep538-coerce-c-locale
ncoghlan d181b92
Use correct reference type in docs
ncoghlan 8cf0590
More Appveyor debugging
ncoghlan cea7970
New theory regarding the Windows problem
ncoghlan c63d5fa
Locale coercion may inject LC_CTYPE into environment
ncoghlan 8e0e1ca
Ensure SYSTEMROOT is set in Windows embedding tests
ncoghlan 7379398
Don't use the default pipe encoding in test_capi
ncoghlan 89759b5
stdin encoding ends up normalised on Windows
ncoghlan 5a56a3f
PEP 538: Add What's New entry
ncoghlan 0036bea
Merge remote-tracking branch 'origin/master' into pep538-coerce-c-locale
ncoghlan 5288662
Add NEWS entry
ncoghlan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix PYTHONCOERCECLOCALE docs
- Loading branch information
commit 1c3a2706ef276ca66f676218395b9d792ef3ca0e
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I reading this right? It seems odd that setting
PYTHONCOERCECLOCALE
would disable coercing the legacy locale. The sense is exactly opposite of what I'd expect.Should the envar be named
PYTHONNOCOERCECLOCALE
?Also, what if the environment variable is set to
"0"
? Given the above description, that should still skip coercion.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, that's a holdover from when the setting was PYTHONALLOWCLOCALE - presumably I changed the title of the section, but then got distracted by something else before updating the body.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 1c3a270