[issue43712] PEP 597: fileinput uses locale encoding

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43712] PEP 597: fileinput uses locale encoding

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset 333d10cbb53dd5f28d76f659a49bf0735f8509d8 by Inada Naoki in branch 'master': bpo-43712 : fileinput: Add encoding parameter (GH-25272) https://github.com/python/cpython/commit/333d10cbb53dd5f28d76f659a49bf0735f8509d8 --

[issue43712] PEP 597: fileinput uses locale encoding

2021-04-07 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24007 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25272 ___ Python tracker ___

[issue43712] PEP 597: fileinput uses locale encoding

2021-04-03 Thread Inada Naoki
New submission from Inada Naoki : fileinput.input() and fileinput.FileInput() don't have `encoding` parameter. User can specify encoding by `openhook=hook_encoded("utf-8")`. But we can not utilize PEP 597, and `encoding="utf-8"` is more user friendly. Additionally, `hook_compressed` doesn't