| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@serhiy-storchaka Could you please review this? |
Sorry, something went wrong.
There was a problem hiding this comment.
There are issues with using locale.getlocale(). It ignores the modifier and can raise ValueError. I suggest to use locale._setlocale().
Needed tests for locales "C", "C.UTF-8", locales with a modifier, locales with and without encoding.
To help testing, you can extract the code into the _guess_languages() function.
Sorry, something went wrong.
|
There are several existing tests (from a previous pr) for the C locale. |
Sorry, something went wrong.
|
CIs don’t have some locale, I will have to add requirements. |
Sorry, something went wrong.
|
@tomasr8 as the expert now, could I get a review:-) |
Sorry, something went wrong.
|
I can have a look this weekend, though I'd still prefer to get a final signoff from Serhiy :) |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
LANGUAGES envvar is prioritized over getlocale for consistency with C gettext.
📚 Documentation preview 📚: https://cpython-previews--131477.org.readthedocs.build/