| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The locale.getencoding() function now uses sys.getfilesystemencoding() if _locale.getencoding() is missing, instead of calling locale.getdefaultlocale().
|
@methane: This change is more a theorical change, since it doesn't affect CPython which always has the _locale extension. But it's needed to prepare the removal of the deprecated locale.getdefaultencoding() function. |
Sorry, something went wrong.
|
I don't think that a Changelog entry is needed, since it doesn't affect CPython users. |
Sorry, something went wrong.
| # LANG not set, default to UTF-8 | ||
| encoding = 'utf-8' | ||
| return encoding | ||
| return _encoding |
There was a problem hiding this comment.
return sys.getfilesystemencoding() would be enough.
Sorry, something went wrong.
There was a problem hiding this comment.
I created PR #105401 to change this.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The locale.getencoding() function now uses
sys.getfilesystemencoding() if _locale.getencoding() is missing, instead of calling locale.getdefaultlocale().