Message389131
| Author |
methane |
| Recipients |
eryksun, lemburg, methane, vstinner |
| Date |
2021年03月20日.00:36:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1616200581.48.0.224428503508.issue43552@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> Why is it being specified that the current LC_CTYPE encoding should be ignored in Windows when a "locale" encoding is requested?
Because `encoding="locale"` must be replacement of the current `encoding=None` (i.e. locale.getpreferredencoding(False).
`encoding=None` behavior will be changed if we change the default encoding or enable UTF-8 mode by default. So we are adding an explicit name to current behavior.
So It is not an option to assign other encoding. See PEP 597 for detail.
I know you are proposing to use CRT locale on Windows. If we change the `locale.getpreferredencoding(False)` to use CRT locale, `encoding="locale"` follow it.
But please discuss it in another issue. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2021年03月20日 00:36:21 | methane | set | recipients:
+ methane, lemburg, vstinner, eryksun |
| 2021年03月20日 00:36:21 | methane | set | messageid: <1616200581.48.0.224428503508.issue43552@roundup.psfhosted.org> |
| 2021年03月20日 00:36:21 | methane | link | issue43552 messages |
| 2021年03月20日 00:36:21 | methane | create |
|