-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. #5639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
On at least one system, readline() causes decoding of multiple lines, including line 27 of idlelib/CREDITS.txt, with a non-ascii character.
|
|
||
| for button, printer, name in button_sources: | ||
| with self.subTest(name=name): | ||
| if name=='license': raise NameError() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debugging remnants?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Test of test failure. Fixed.
| @@ -0,0 +1,5 @@ | |||
| Add "encoding=utf-8" to open() in idle_test/test_help_about. | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these empty lines are not needed. Bug in blurb?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they were not in the file as I wrote it. Fixed with online editor.
|
Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
…t. (pythonGH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03e) Co-authored-by: Terry Jan Reedy <[email protected]>
|
GH-5642 is a backport of this pull request to the 3.7 branch. |
|
GH-5643 is a backport of this pull request to the 3.6 branch. |
…t. (pythonGH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03e) Co-authored-by: Terry Jan Reedy <[email protected]>
…t. (GH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03e) Co-authored-by: Terry Jan Reedy <[email protected]>
…t. (GH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03e) Co-authored-by: Terry Jan Reedy <[email protected]>
On at least one system, readline() causes decoding of multiple lines,
including line 27 of idlelib/CREDITS.txt, with a non-ascii character.
https://bugs.python.org/issue32826