New submission from Inada Naoki <songofaca...@gmail.com>:
https://github.com/python/cpython/blob/c8e5eb904e12010d2302364e1037c24a30f5e241/Lib/netrc.py#L29 Can we change the encoding="utf-8" and errors="replace"? IMHO, comments are source of UnicodeDecodeError. So we can open file with binary mode and skip comments without decoding it. But we need to decode non-comment lines lines with some encoding anyway. ---------- components: Library (Lib) messages: 390232 nosy: methane priority: normal severity: normal status: open title: PEP 597: netrc uses locale encoding. versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43733> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com