[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-24 Thread wjssz
wjssz added the comment: I wrote this code, but I don't know how to make a patch. Insert these codes in C:\Python34\Lib\idlelib\IOBinding.py Around line 234, before this line: self.text.delete(1.0, end) # check non-bmp characters line_count = 1 position_count = 1

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-24 Thread wjssz
wjssz added the comment: Changing the second if to elif is better. I'm sorry, I have never submitted patch. If somebody gives a hand, feel free to modify those codes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21084

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-24 Thread wjssz
wjssz added the comment: Feel free to modify this patch. -- Added file: http://bugs.python.org/file36080/nonbmp_except_check.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21084

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-24 Thread wjssz
wjssz added the comment: nonbmp_except_check_v2.patch changes character numbers to 0-based, same as IDLE. Quote from www.tkdocs.com : for historical conventions related to how programmers normally refer to lines and characters, line numbers are 1-based, and character numbers are 0-based

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-14 Thread wjssz
wjssz added the comment: I suggest don't change the content of file, just give a message such as: IDLE can't display non-BMP character (codepoint above 0x). A non-BMP character found in Line 23, position 8 of .py, please open this file with other editor

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-03-28 Thread wjssz
New submission from wjssz: When open a file with characters above the range (U+-U+), IDLE quit without any report. For example, open this file \Lib\test\test_re.py The below is Traceback info, the last line tells the reason. I just hope IDLE say something before quit, so we can know

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-03-28 Thread wjssz
wjssz added the comment: When open a file with characters above the range (U+-U+), IDLE quit without any report. For example, open this file C:\Python33\lib\test\test_re.py The below is Traceback info, the last line tells the reason. I just hope IDLE say something before quit, so we