[issue40435] Failed to launch IDLE in a UTF-8 code page terminal environment
New submission from 左迟 : Environment: 1.OS: Windows 10 1909 Pro 2.Python version: 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] 3.Error message: UnicodeDecodeError: 'CP_UTF8' codec can't decode byte 0xd0 in position 23: No mapping for the Unicode character exists in the target code page How to reporduce? Set the code page to UTF-8 in windows control pannel/region/ Type idle in the terminal hoping to launch the IDLE, but you will get the error. -- assignee: terry.reedy components: IDLE files: pic04-29-18-05-10.png messages: 367639 nosy: terry.reedy, 左迟 priority: normal severity: normal status: open title: Failed to launch IDLE in a UTF-8 code page terminal environment type: crash versions: Python 3.7 Added file: https://bugs.python.org/file49099/pic04-29-18-05-10.png ___ Python tracker <https://bugs.python.org/issue40435> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40435] IDLE should catch user config file UnicodeDecodeError
左迟 added the comment: Hi! Thanks for your useful comment. And I'm sorry for uploading the image but not pasting it in the comment. When I append "encoding=utf-8" to ~/.idlerc/config-main.cfg, the idle turns to be good and works well. Yes, the "[] Beta: Use Unicode UTF8 for worldwide language support" is what I mean. The reason why I raise this issue is there is no searching results for this error messgae. In fact, my OS language is Chinese. And I tick the beta UTF8 option manually. It seems like that causes the IDLE crash. Really thanks for your help! Best Regards, Chi. -- resolution: -> not a bug stage: test needed -> resolved status: open -> closed versions: -Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40435> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40435] IDLE should catch user config file UnicodeDecodeError
左迟 added the comment: Well, I have uploaded my ~/.idlerc/config-main.cfg. And apeeding "encodin=utf-8" is my first time to edit config-main.cfg file manually. The content of config-main.cfg is below: 1 [EditorWindow] 2 font-size = 16 3 font-bold = False 4 encoding = utf-8 5 font = courier new 6 Just let me know if I could help you. -- Added file: https://bugs.python.org/file49101/config-main.cfg ___ Python tracker <https://bugs.python.org/issue40435> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com