Mercurial > kallithea
diff rhodecode/lib/indexers/daemon.py @ 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 | f99075170eb4 |
children | 3072935bdeed |
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)