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

2019-10-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: As noted on #13153, files with astral chars can now be read without an exception, but the presence of astral chars messes up editing text that follows at least on the same line by misplacing the cursor. I will open a new issue about replacing such with \U

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

2019-10-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed by PR 16545 (see issue13153). -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

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

2018-02-09 Thread buhtz
Change by buhtz : -- nosy: +buhtz ___ Python tracker ___ ___ Python-bugs-list mailing

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

2016-05-28 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

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

2016-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tk Text (and other widgets, but Text is the main issue) has two display problems: astral chars and long lines (over a thousand chars, say). These problems can manifest in various places: file names, shell input (keyboard or clipboard), shell output, editor

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

2015-12-06 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[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 Ezio Melotti
Ezio Melotti added the comment: See https://docs.python.org/devguide/patch.html -- ___ 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-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs 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-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-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - high ___ 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-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is very similar to issue13153. Both these issues can have same solution or can have different solutions. This issue relates to more realistic situation and therefore is more important. Here is simple and almost working solution for this issue.

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

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: Accidentally set to pending I take it. -- nosy: +BreamoreBoy status: pending - open ___ 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-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

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

2014-03-28 Thread Ezio Melotti
Ezio Melotti added the comment: See #13153. -- nosy: +ezio.melotti, serhiy.storchaka resolution: - duplicate status: open - pending type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21084