changeset 557:29ec9ddbe258

fixed whoosh indexing possible unicode decode errors
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 07 Oct 2010 18:30:50 +0200
parents 65b2f150beb7
children 14559eb34003
files rhodecode/lib/indexers/daemon.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/indexers/daemon.py	Thu Oct 07 17:32:24 2010 +0200
+++ b/rhodecode/lib/indexers/daemon.py	Thu Oct 07 18:30:50 2010 +0200
@@ -106,8 +106,8 @@
         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)