[ZCM] [ZC] 250/ 3 Accept "TextIndex: Globbing with Unicode String doesn't work"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Wed, 27 Feb 2002 14:21:52 -0500


Issue #250 Update (Accept) "TextIndex: Globbing with Unicode String doesn't work"
 Status Accepted, Zope/bug+solution medium
To followup, visit:
  http://collector.zope.org/Zope/250

==============================================================
= Accept - Entry #3 by ajung on Feb 27, 2002 2:21 pm

 Status: Pending => Accepted

 Supporters added: ajung


________________________________________
= 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.


==============================================================