Skip to content
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

EncodingWarning when PYTHONWARNDEFAULTENCODING set #505

Open
jaraco opened this issue Jul 9, 2023 · 4 comments
Open

EncodingWarning when PYTHONWARNDEFAULTENCODING set #505

jaraco opened this issue Jul 9, 2023 · 4 comments

Comments

@jaraco
Copy link

jaraco commented Jul 9, 2023

I see this warning in my docs builds for projects based on jaraco/skeleton when running sphinxlint.

/Users/jaraco/code/jaraco/jaraco.packaging/.tox/docs/lib/python3.11/site-packages/regex/regex.py:470: EncodingWarning: UTF-8 Mode affects locale.getpreferredencoding(). Consider locale.getencoding() instead.
  pattern_locale = _getpreferredencoding()
@jaraco
Copy link
Author

jaraco commented Apr 1, 2024

I'm still seeing this warning when building my docs. If I send a PR, will it get reviewed and released?

@mrabarnett
Copy link
Owner

Are you using a legacy locale?

I'll have a look. As long as it doesn't break anything (not that I'm all that bothered about locales), it'll probably be accepted.

@mrabarnett mrabarnett reopened this Apr 1, 2024
@mrabarnett
Copy link
Owner

mrabarnett commented Apr 1, 2024

[Clicked wrong button!]

Are you using a legacy locale?

I'll have a look. As long as it doesn't break anything (not that I'm all that bothered about locales), it'll probably be accepted.

@jaraco
Copy link
Author

jaraco commented Apr 2, 2024

I'm not using a legacy locale. I test primarily on macOS, but the warning emits on Ubuntu also (see the collateral docs --> Eval docs job).

Thanks for taking a look!

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

No branches or pull requests

2 participants