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
PEP 597: logging.fileConfig() uses locale encoding. #87897
Comments
logging.basicConfig() uses locale encoding when reading config file. We need to add |
s/basicConfig/fileConfig/ basicConfig() is fixed by fb7869. |
If "locale" is the intended default, why not being more explicit and use encoding="locale"? |
If we use |
Ah, so you want to emit an EncodingWarning when fileConfig(filename) is called without specifying an encoding, right? |
Yes, but only when the user uses I already added In the future, config file should be read with UTF-8 by default. |
encoding
parameter to logging.fileConfig() #25273Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: