Code

Fix Issue2550609.
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 24 Nov 2009 20:20:14 +0000 (20:20 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 24 Nov 2009 20:20:14 +0000 (20:20 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4387 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/backends/indexer_rdbms.py

index 3155c0257daeee2fd655128244941357fb229917..bb89ceca61240c0892e6bd3357e958f0b8d7218b 100644 (file)
@@ -69,7 +69,7 @@ class Indexer(IndexerBase):
                 str = str.encode("utf-8", "replace")
             return str
         text = tryencode(text).upper()
-        wordlist = [tryencode(w)
+        wordlist = [w.encode("utf-8")
                     for w in re.findall(r'(?u)\b\w{%d,%d}\b'
                                         % (self.minlength, self.maxlength), text)]
         words = set()