[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-06-04 Thread Mike Perry
Mike Perry added the comment: Looking good in 3.2.3! Tested on Debian Wheezy using packages python3-tk 3.2.3-1 and idle3 3.2.3~rc1-2. /*  * Mike Perry  * m...@cogscom  */ On Sun, May 27, 2012 at 4:10 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > On Win 7, a brings u

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Win 7, a brings up the box on all the latest releases: 2.7.3, 3.2.3, and 3.3.0a3. (These all come with recent tk 8.5.x.) Mike, please retest with 3.2.3 and specify os and tk version and exactly what you entered if there is still a problem. -- nosy

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-02-12 Thread Mike Perry
Mike Perry added the comment: Figured I should capture the exception. See below. 3.2.2+ (default, Jan 8 2012, 07:22:26) [GCC 4.6.2] Traceback (most recent call last): File "/usr/bin/idle3", line 5, in main() File "/usr/lib/python3.2/idlelib/PyShell.py", line 1429, in main root.m

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-02-12 Thread Mike Perry
Mike Perry added the comment: Hello, I am still able to reproduce this issue with Python 3.2.2. It seems as if this bug was closed with a the note: r70039 3.1 forward ported > 3.2 > default. Will be in 3.2.1. This leads me to believe that either 3.2.2 has a regression or the patch never ma

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Having a modified utf-8 codec will be useful. That said, it is an error for Tcl/Tk to expose modified utf-8 externally, and that was fixed at some point in Tk8.5. Since Tk is no longer sending 0xC080 for the %A char, switching codecs in _tkinter.c won't accomp

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: r70039 3.1 forward ported > 3.2 > default. Will be in 3.2.1. -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread STINNER Victor
STINNER Victor added the comment: I'm working on #2857 which adds the "Modified UTF-8" ("utf-8-java"?) codec to Python. We can maybe use it instead of raising an error in 3.3? -- nosy: +haypo ___ Python tracker __

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82cfbe2ddfbb by Kurt B. Kaiser in branch '3.1': Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError. http://hg.python.org/cpython/rev/82cfbe2ddfbb -- nosy: +python-dev ___ Python track

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-10 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Tcl/Tk uses modified utf-8 internally. This includes using 0xC080, a multibyte Unicode null character, for embedded nulls that work with C's null terminated strings. Java does the same. Note that typing Ctrl-space and Ctrl-2 are conventional ways to enter a

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-04-10 Thread R. David Murray
R. David Murray added the comment: Nudge: report on the Ubuntu bug tracker that this is still an issue with 3.2: https://bugs.launchpad.net/bugs/517552 -- nosy: +r.david.murray versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-02-12 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: kbk -> ned.deily nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-02-11 Thread Michael Strein
Michael Strein added the comment: Do we know the status of this issue? Have not seen update in four months. Currently is a major headache on my linux box. -- nosy: +mgstrein ___ Python tracker

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2010-10-11 Thread Tangaroa
Tangaroa added the comment: Python 3.1.2, Ubuntu (Lucid) Caused by Control + Shift + Spacebar Debugger output from terminal: Traceback (most recent call last): File "/usr/bin/idle-python3.1", line 5, in main() File "/usr/lib/python3.1/idlelib/PyShell.py", line 1420, in main roo

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2010-09-18 Thread Mark Lawrence
Mark Lawrence added the comment: Could someone with commit privileges please review the patch with a view to committing, thanks. -- nosy: +BreamoreBoy, terry.reedy versions: -Python 2.6 ___ Python tracker ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2010-07-12 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2010-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: This has been reported in #9231 (and #6144, #6512, #7884, #6920, #6424, #5156) too. -- components: +IDLE keywords: +needs review stage: -> patch review versions: +Python 3.2 -Python 3.0 ___ Python tracker

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-09-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Isn't this better implemented via a codec error handler? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-08-08 Thread Guilherme Polo
Guilherme Polo added the comment: Today I noticed the StringObj manpage (from tcl) says that the bytes that represent an tcl object should be treated as read-only (although it uses char *) so this issue1028.diff may very well cause a segfault at some point. I'm attaching a new patch that fixes

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-08-07 Thread Guilherme Polo
Guilherme Polo added the comment: Uhm, in the long run I believe it will be better to move to Tcl_CreateObjCommand since it is said that commands created by it are significantly faster than the ones created by Tcl_CreateCommand (more information about this can be found at tcl documentation). I'

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-08-07 Thread Guilherme Polo
Guilherme Polo added the comment: Attaching a patch against trunk, I believe this solves the problems described here. -- versions: +Python 2.6, Python 2.7 Added file: http://bugs.python.org/file14674/issue1028.diff ___ Python tracker

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-19 Thread Winfried Plappert
Winfried Plappert added the comment: I have the problem described in issue6512 and here is some information Python version - hand compiled on Ubuntu 9.04: Python 3.1 (r31:73572, Jul 18 2009, 11:13:40) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- superseder: [IDLE] UnicodeDecodeError when invoking force-open-completions -> ___ Python tracker ___ ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- superseder: -> [IDLE] UnicodeDecodeError when invoking force-open-completions ___ Python tracker ___ ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-18 Thread Ezio Melotti
Ezio Melotti added the comment: More users reported this problem in #6144 and #6512. -- nosy: +ezio.melotti priority: -> normal type: -> behavior ___ Python tracker ___ ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-02-13 Thread gumpy
gumpy added the comment: 8.5.0 This is still an issue with both tk versions in the 3.0.1 python release. ___ Python tracker ___ ___ Python-bugs

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-02-03 Thread Guilherme Polo
Guilherme Polo added the comment: Can you tell what: print(tkinter.Tcl().tk.call('info', 'patchlevel')) prints ? Specifically to know which tk 8.5.x has the problem. ___ Python tracker

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-12-06 Thread gumpy
gumpy <[EMAIL PROTECTED]> added the comment: This problem exists for me on Ubuntu8.04 with both tk/tcl8.4.16 and 8.5. -- nosy: +gumpy ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-12-03 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I've been working on a new _tkinter (named it as "plumage") these days and I hit this same problem for trusting too much that nothing from tcl, including tk and extensions, would give me this embedded null. Checking another bridge to Tcl (one

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-12-01 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Some more clarifications about this bug: Tcl shouldn't be giving us a UTF-8 string with a 0xC0 byte, since that is not valid UTF-8. I'm aware that Tcl uses the sequence 0xC0 0x80 for special purposes but it is also said that such sequences sh

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-21 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: > Hirokazu Yamamoto added the comment: > >>You are missing the point on using Tcl_CreateObjCommand, I didn't mean >>to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because >>if you are going to convert everything to unicode the

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >You are missing the point on using Tcl_CreateObjCommand, I didn't mean >to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because >if you are going to convert everything to unicode then there is no >point in using Tcl_CreateO

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-21 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I'm sorry if it sounded like I were bashing you, I was just pointing out my view of the patch -- you didn't need to remove it. The patch I submitted here can also be improved (although it "works"), but I'm leaving it as a possible idea for som

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-21 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12089/adhok.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-21 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: You are missing the point on using Tcl_CreateObjCommand, I didn't mean to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because if you are going to convert everything to unicode then there is no point in using Tcl_CreateObjComma

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I did little modification to tkintertest.py. Please use this line. my_print("*** event.char: ", repr(event.char)) ___ Python tracker <[EMAIL PROTECTED]> __

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I suceeded to reproduce this issue with coLinux + UltraVNC on Win2000. Yes, py3k claimed utf-8 error, so I tried trunk. Here is result. *** event.keycode: 8 *** event.state: 0 *** event.char: '' *** event.keycode: 16 *** event.state:

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-19 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: tk 8.4.19 here, but windows and linux almost surely uses different window managers (you could run gnome and others under windows, but I'm betting it is not the case). Now, it is very hard to say that we shouldn't care about this bug here. Tcl

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I confirmed PythonCmd_check_for_utf.diff worked on my machine. IDLE didn't crash. >I can reproduce it here with tk8.4, using tk8.5 doesn't cause this. That is, this is a bug of tk8.4, and solved in tk8.5 which is already stable release? I

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Removed some repeated code in the patch Added file: http://bugs.python.org/file12054/PythonCmd_check_for_utf.diff ___ Python tracker <[EMAIL PROTECTED]> _

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12053/PythonCmd_check_for_utf.diff ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Here is a patch that doesn't use magic numbers :P I didn't hit the problem described in issue4313 with this one, and PythonCmd should be doing this anyway, but ideally we should move to Tcl_CreateObjCommand. Added file: http://bugs.python.org

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I can reproduce it here with tk8.4, using tk8.5 doesn't cause this. -- nosy: +gpolo ___ Python tracker <[EMAIL PROTECTED]> ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Sorry, I reverted r57540 because it caused segfault at IDLE exit. (See issue4313) I reopened this issue. -- nosy: +ocean-city resolution: accepted -> status: closed -> open ___ Python tracker <

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: OK, thanks for the review! I suppose Tk is sending a bad string. r57540 -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Neal Norwitz
Neal Norwitz added the comment: I can confirm the problem and that your patch fixes the problem. Go ahead and check it in. Thanks! -- assignee: nnorwitz -> kbk nosy: +nnorwitz resolution: -> accepted __ Tracker <[EMAIL PROTECTED]>

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Well, maybe someday Tk will send a multibyte unicode character. Update the patch. __ Tracker <[EMAIL PROTECTED]> __Index: Modules/_tkinter.c =

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser: __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/pyth

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Nope, you have to make sure not to type too wide. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Heh, I see we have the same damn problem SF had: when a comment is edited, it doesn't re-wrap properly when submitted. You have to remove the returns manually after editing. __ Tracker <[EMAIL PROTECTED]>

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
New submission from Kurt B. Kaiser: The control-spacebar binding is used in IDLE to force open the completions window. It's causing IDLE to exit with a utf8 decode error. Attached is a Tkinter cut-down exhibiting the problem and a patch. The cutdown runs ok on 2.6 but not on py3k because