[ZCM] [ZC] 250/ 2 Comment "TextIndex: Globbing with Unicode String doesn't work"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Wed, 27 Feb 2002 05:29:54 -0500
Issue #250 Update (Comment) "TextIndex: Globbing with Unicode String doesn't work"
Status Pending, Zope/bug+solution medium
To followup, visit:
http://collector.zope.org/Zope/250
==============================================================
= Comment - Entry #2 by snej on Feb 27, 2002 5:29 am
Uploaded: "testTextIndex.py.patch"
- http://collector.zope.org/Zope/250/testTextIndex.py.patch/view
the tests...
________________________________________
= Request - Entry #1 by snej on Feb 27, 2002 5:29 am
Uploaded: "GlobbingLexicon.py.patch"
- http://collector.zope.org/Zope/250/GlobbingLexicon.py.patch/view
GlobbingLexicon.createRegex uses string.translate()
to remove characters from the pattern. This is not
supported for unicode strings; instead, translate
is called with a mapping of ordinals.
Tests for the bug and a fix is attached.
==============================================================