When using chars like "
When using chars like "ä" in Python interactive mode (just starting the interpreter), refetching them from cmd history and editing those lines in a way that "moves" the latin-1 characters around, the interpreter segfaults: python Python 2.2.2 (#1, Dec 8 2002, 13:02:08) [GCC 3.2.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print "one twothree ä" one twothree ä >>> print "one twothreeSegmentation fault On that last line, I just pressed cursor-up and tried to remove the space in front of the "ä". I guess this problem is somehow between Python and ReadLine. If need be, I can supply a gdb backtrace. python-2.2.2 gcc-3.2.1 glibc-2.3.1-r2 readline-4.3-r3
I just reproduced this. It doesn't occur when using LANG=en_US, but occurs with LANG=POSIX and LANG=C (possibly others?) A gdb backtrace may be useful - I'm going to contact the upstream developer.
Tracked this down to readline 4.3. I'll do some more digging.
Should be fixed now, grab readline-4.3-r4 out of the portage tree after it propogates. Added a patch from the upstream developer for readline. Works for me, but if that doesn't fix it for you, let me know.
works for me, no recompile of Python necessary. thx!
Hm, I have this very same problem with readline-4.3-r4 and bash. It's quite annoying, as I can't rename files with international characters in them without getting a segfault from bash. I'll do some digging and submit a new bug report.