# HG changeset patch # User Marcin Kuzminski # Date 1353535297 -3600 # Node ID b3c8a3a5ce5fec30876234de725dcb1b5aaaedf0 # Parent 16af24982e307640051c53af4be761208416b686 fixed issues some people had with whoosh indexers and unicode decode errors when building os paths diff -r 16af24982e30 -r b3c8a3a5ce5f rhodecode/lib/indexers/daemon.py --- a/rhodecode/lib/indexers/daemon.py Sun Nov 18 23:17:02 2012 +0100 +++ b/rhodecode/lib/indexers/daemon.py Wed Nov 21 23:01:37 2012 +0100 @@ -41,7 +41,7 @@ from rhodecode.config.conf import INDEX_EXTENSIONS from rhodecode.model.scm import ScmModel -from rhodecode.lib.utils2 import safe_unicode +from rhodecode.lib.utils2 import safe_unicode, safe_str from rhodecode.lib.indexers import SCHEMA, IDX_NAME, CHGSETS_SCHEMA, \ CHGSET_IDX_NAME @@ -119,7 +119,7 @@ tip = repo.get_changeset('tip') for _topnode, _dirs, files in tip.walk('/'): for f in files: - index_paths_.add(jn(repo.path, f.path)) + index_paths_.add(jn(safe_str(repo.path), safe_str(f.path))) except RepositoryError: log.debug(traceback.format_exc())