# HG changeset patch # User Marcin Kuzminski # Date 2010-10-07 16:30:50 # Node ID 29ec9ddbe2589930feba673106b8fcccc04bbd41 # Parent 65b2f150beb7bf945c58335237201dec9730fe48 fixed whoosh indexing possible unicode decode errors diff --git a/rhodecode/lib/indexers/daemon.py b/rhodecode/lib/indexers/daemon.py --- a/rhodecode/lib/indexers/daemon.py +++ b/rhodecode/lib/indexers/daemon.py @@ -106,8 +106,8 @@ class WhooshIndexingDaemon(object): try: os.stat(path) writer.add_document(owner=unicode(repo.contact), - repository=u"%s" % repo.name, - path=u"%s" % path, + repository=safe_unicode(repo.name), + path=safe_unicode(path), content=u_content, modtime=os.path.getmtime(path), extension=ext)