[New-bugs-announce] [issue41138] trace CLI reads source files using the locale encoding

Serhiy Storchaka report at bugs.python.org
Sat Jun 27 06:50:02 EDT 2020


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

The command line interface of the trace module reads source files using the locale encoding.

The following file fixes this by reading a file in binary mode (compile() detects the encoding). It fixes also a resource warning when save counts to a file.

----------
components: Library (Lib)
messages: 372461
nosy: belopolsky, serhiy.storchaka
priority: normal
severity: normal
status: open
title: trace CLI reads source files using the locale encoding
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41138>
_______________________________________


More information about the New-bugs-announce mailing list