Message49780
Array module fails handling utf-8 strings giving a
SIGSEGV. Attached patch seems to do the trick...
gdb> run
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1480337216 (LWP 31303)]
Python 2.4.2 (#1, Mar 20 2006, 12:08:06)
[GCC 3.4.5] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import array
>>> x = array.array("u")
>>> x.append(u"barış")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: array item must be unicode character
>>> x.append("barış")
>>> x
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1480337216 (LWP 31303)]
Error while running hook_stop:
Invalid type combination in ordering comparison.
0xa7ee0799 in PyUnicodeUCS4_FromUnicode ()
from /usr/lib/libpython2.4.so.1.0
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 15:47:03 | admin | link | issue1454485 messages |
| 2007-08-23 15:47:03 | admin | create | |
|