[issue41138] trace CLI reads source files using the locale encoding

2020-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cb53b8ce9c8660465b816f4d577720305b1283fa by Serhiy Storchaka in branch '3.8': [3.8] bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177) (GH-21200) https://github.com/python/cpython/commit/cb53b8ce9c8660465b816f4d577720305b1283fa ---

[issue41138] trace CLI reads source files using the locale encoding

2020-06-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +20354 pull_request: https://github.com/python/cpython/pull/21200 ___ Python tracker ___

[issue41138] trace CLI reads source files using the locale encoding

2020-06-28 Thread miss-islington
miss-islington added the comment: New changeset d1e05e78a3995fd7e5a79c5c6e4c8160aa48af22 by Miss Islington (bot) in branch '3.9': bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177) https://github.com/python/cpython/commit/d1e05e78a3995fd7e5a79c5c6e4c8160aa48af22 -- __

[issue41138] trace CLI reads source files using the locale encoding

2020-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 04cdeb7a5617c48102f45b965e683b12cdf934f8 by Serhiy Storchaka in branch 'master': bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177) https://github.com/python/cpython/commit/04cdeb7a5617c48102f45b965e683b12cdf934f8 -- _

[issue41138] trace CLI reads source files using the locale encoding

2020-06-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +20350 pull_request: https://github.com/python/cpython/pull/21196 ___ Python tracker _

[issue41138] trace CLI reads source files using the locale encoding

2020-06-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20335 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21177 ___ Python tracker ___

[issue41138] trace CLI reads source files using the locale encoding

2020-06-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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. -