New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41138>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to