Inada Naoki <songofaca...@gmail.com> added the comment:

> (1) "UTF-8" in the UTF-8 Mode, or the locale encoding
> (2) Always use the locale encoding, ignore the UTF-8 Mode
>
> What I don't expect is the current behavior, before PEP 597. Who uses open() 
> without specifying an encoding but always want to use the locale encoding? 
> (case 2) So this use case is already broken when the UTF-8 Mode is enabled 
> explicitly?

Yes, it is broken already.  So they can not use UTF-8 mode.

If `encoding="locale"` ignore UTF-8 mode, it save the use case. They can add 
`encoding="locale"` where they need to use locale/GetACP encoding and enable 
UTF-8 mode.

That's why it is important If we enable UTF-8 mode by default in the future.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43510>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to