[ python-Bugs-931848 ] re seems broken on 64-bit machines/linux
SourceForge.net
noreply at sourceforge.net
Thu Apr 8 13:02:19 EDT 2004
Bugs item #931848, was opened at 2004-04-08 13:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=931848&group_id=5470
Category: Regular Expressions
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Mihai Ibanescu (misa)
Assigned to: Fredrik Lundh (effbot)
Summary: re seems broken on 64-bit machines/linux
Initial Comment:
Hello,
Tested the following piece of code both on ia64 and amd64.
python -c 'import re; print
re.compile(u"[\u002E\u3002\uFF0E\uFF61]").split("a.b.c")'
Expected result:
['a', 'b', 'c']
Actual result: varies depending on the version of glibc
(probably).
On glibc-2.3.2 (Red Hat Enterprise Linux 3 WS) I get back:
['a.b.c']
On glibc-2.3.3 (Fedora Core 2) I get back:
['a.b.', '']
This doesn't happen on i386 architectures.
The above string that I try to compile comes from
encodings/idna.py (and it is used to split a domain
name into components).
Let me know if you need more information on how to
reproduce this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=931848&group_id=5470
More information about the Python-bugs-list
mailing list