[issue36058] Improve file decoding before re.search

Terry J. Reedy report at bugs.python.org
Wed Feb 20 19:17:42 EST 2019


New submission from Terry J. Reedy <tjreedy at udel.edu>:

Spin-off from #14929, which fixed crash.  From msg161754:
"The default extension is .py. The default encoding for .py files is utf-8. I think that is the default for what Idle writes. So I think this should be the default encoding (explicitly given) at least for .py files.
>From msg161755: (but not sure about this)
"Also, perhaps dialog box could have encodings field. People should be able to grep python code for any legal identifier, and this means proper decoding according to the encoding they actually use."

----------
assignee: terry.reedy
components: IDLE
messages: 336158
nosy: terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: Improve file decoding before re.search
type: enhancement
versions: Python 3.8

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


More information about the Python-bugs-list mailing list