[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Rather than raising a ValueError, would UnicodeEncodeError be more appropriate? I admit that this suggestion may be bike shedding. -- ___ Python tracker

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in #14200 -- assignee: -> asvetlov resolution: fixed -> duplicate stage: commit review -> committed/rejected status: open -> closed superseder: -> Idle shell crash on printing non-BMP unicode character versions: -Python 2.7, Python 3.2 ___

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-12 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-11 Thread Roger Serwy
Roger Serwy added the comment: I agree with Terry. The current behavior of raising ValueError will lead to problems in application code in the future if Tkinter gets fixed such that it can render Unicode properly beyond 0x. -- ___ Python tracke

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: In responding to #14200, it occurred to me that better than an exception would be doing what the interpreter does in Command Prompt window, which is expand high chars to '\U0001' escaped form. -- ___ Python tra

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f49b496d161 by Victor Stinner in branch 'default': Issue #12342: Fix compilation on Mac OS X http://hg.python.org/cpython/rev/5f49b496d161 -- ___ Python tracker

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread Florent Xicluna
Florent Xicluna added the comment: Failed to build these modules: (3.3 on Snow Leopard) _tkinter ./cpython/Modules/_tkinter.c: In function ‘AsObj’: ./cpython/Modules/_tkinter.c:996: warning: dereferencing ‘void *’ pointer ./cpython/Modules/_tkinter.c:996: error: invalid use of void expression

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: _tkinter now raises ValueError("character U+10 is above the range (U+-U+) allowed by Tcl"). > You could say "Unicode character ..." in the error to make clear > what kind of range is U+-U+ (people that are not familiar > with Unicode and BM

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a07b73abdb1 by Victor Stinner in branch '3.2': Issue #12342: Improve _tkinter error message on unencodable character http://hg.python.org/cpython/rev/9a07b73abdb1 New changeset 5aea95d41ad2 by Victor Stinner in branch 'default': (Merge 3.2) Issue

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: You could say "Unicode character ..." in the error to make clear what kind of range is U+-U+ (people that are not familiar with Unicode and BMP chars might wonder if that's some tcl/tk thing). -- ___ Python t

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch implements my suggestion. Looking again, I think the English is fine ;-). -- stage: -> commit review ___ Python tracker ___ ___

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm not sure whether the wording is good English, but apart from that, the patch looks fine. -- ___ Python tracker ___ __

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: Here is the patch as a .patch file. -- keywords: +patch Added file: http://bugs.python.org/file23607/tcl_unicode_range.patch ___ Python tracker ___

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-10-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Changing the error message sounds fine to me. People in need of the feature should lobby their system vendors to provide a Tcl build that uses a 32-bit Tcl_UniChar. Not sure whether it would actually render the string correctly, but at least it would be able

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-10-30 Thread Ned Deily
Ned Deily added the comment: (Merging CC list from duplicate Issue13265. -- nosy: +ezio.melotti, kbk, maniram.maniram, serwy ___ Python tracker ___ _

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: >ValueError: unsupported character (U+1): Tcl doesn't support characters >outside U+-U+ range Slightly shorter and without the double :s. ValueError: character U+1 is above the range (U+-U+) allowed by Tcl/Tk. I agree with a change l

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-17 Thread STINNER Victor
STINNER Victor added the comment: Instead of ValueError: unsupported character I suggest: ValueError: unsupported character (U+1): Tcl doesn't support characters outside U+-U+ range What do you think? -- ___ Python tracker

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread Ned Deily
Ned Deily added the comment: It looks like that error message has been in _tkinter.c since 2002: http://svn.python.org/view/python/trunk/Modules/_tkinter.c?r1=28989&r2=28990&; I suppose it could be slightly more informative but it seems pretty unambiguous to me. Martin, any opinions? --

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: > From the discussions here, http://wiki.tcl.tk/1364, it appears that Tcl > 8.5 (and earlier) does not support Unicode code points outside > the BMP range as in this example. Extract of http://wiki.tcl.tk/1364 : "RS 2008-07-09: Unicode out of BMP (> U+) re

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread Ned Deily
Ned Deily added the comment: >From the discussions here, http://wiki.tcl.tk/1364, it appears that Tcl 8.5 >(and earlier) does not support Unicode code points outside the BMP range as in >this example. I don't think there is anything practical IDLE or tkinter can do >about that. -- no

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: U+1 is not the most common character in fonts. You should try another character in U+1-U+10 range (non-BMP characters). The new funny emoticon are in this range, but I don't know if your Ubuntu setup includes a font supporting this range. http://w

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread R. David Murray
R. David Murray added the comment: Judging from the stack trace, it isn't str.format that's failing, it's tk failing to display it. -- nosy: +r.david.murray, terry.reedy title: characters with ord above 65535 fail conversion with str.format for '{:c}' in IDLE -> characters with ord ab