-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
getdefaultlocale() deprecated in Python 3.11 #2538
Comments
See a discussion touching this topic here |
This is meanwhile a blocker in Fedora 37: |
The blocker is actually connected to another issue, #2507. But both of them are caused by Python 3.11, so they are related. Theoretically, PR #2550 linked to this shouldn't really cause a problem in Windows. Hence, as this is a blocker (not only for Fedora, it is a blocker for anything with Python 3.11), it might be easier to accept the fixes (#2550 and #2539) and then see if somebody reports any issue on Windows? |
* fix #2538 * Use getencoding() where only encoding is needed; getlocale() otherwise
* fix OSGeo#2538 * Use getencoding() where only encoding is needed; getlocale() otherwise
* fix #2538 * Use getencoding() where only encoding is needed; getlocale() otherwise
* fix OSGeo#2538 * Use getencoding() where only encoding is needed; getlocale() otherwise
Backport of #2550 to G78, fixing Python 3.11 error after deprecation. * fix #2538 * Use getencoding() where only encoding is needed; getlocale() otherwise Additional changes: - sync of `tools/mkhtml.py` with `main` branch - selected backport from #2140 to get `utils/generate_last_commit_file.py` - selective sync of `lib/init/grass.py`
* fix OSGeo#2538 * Use getencoding() where only encoding is needed; getlocale() otherwise
* fix OSGeo#2538 * Use getencoding() where only encoding is needed; getlocale() otherwise
Describe the bug
Initializing GRASS with Python 3.11, I am getting the following warning messages:
Not annoying so much, but it could cause us some problems once the function will be fully removed from
locale
.Possible solution
Change to
getlocale()
. Will dive deeper to find out if it can cause some problems.The text was updated successfully, but these errors were encountered: