[ python-Bugs-1009263 ] non-ascii readline input crashes python

SourceForge.net noreply at sourceforge.net
Sat Aug 14 23:10:16 CEST 2004


Bugs item #1009263, was opened at 2004-08-15 03:19
Message generated for change (Comment added) made by perky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1009263&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: paul rubin (phr)
Assigned to: Nobody/Anonymous (nobody)
Summary: non-ascii readline input crashes python

Initial Comment:
Start Python 2.3.4 on Linux command line:

$ python
Python 2.3.4 (#1, Jul 24 2004, 19:45:58)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>>

Enter the string "2×3" (2 times 3, the symbol between 2
and 3 is a multiplication sign, I think Unicode c397 or
maybe 97c3 if I have it byte swapped) and hit return. 
Python reports a syntax error.  Hit Ctrl-P to edit the
line with readline.  Use ctrl-D to delete the first
character of the input line, and Python instantly
crashes with a seg fault.

----------------------------------------------------------------------

>Comment By: Hye-Shik Chang (perky)
Date: 2004-08-15 06:10

Message:
Logged In: YES 
user_id=55188

What locale do you use?  I couldn't reproduce the problem on
any of utf-8, iso8859-1, C, euc-kr locale.
And, can you please attach a backtrace for the segfault point?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1009263&group_id=5470


More information about the Python-bugs-list mailing list