diff options
Diffstat (limited to 'rhodecode/lib/diffs.py')
-rw-r--r-- | rhodecode/lib/diffs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rhodecode/lib/diffs.py b/rhodecode/lib/diffs.py index 32354b05..215b1cb7 100644 --- a/rhodecode/lib/diffs.py +++ b/rhodecode/lib/diffs.py @@ -44,6 +44,7 @@ from rhodecode.lib.vcs.nodes import FileNode, SubModuleNode from rhodecode.lib.vcs.backends.base import EmptyChangeset from rhodecode.lib.helpers import escape from rhodecode.lib.utils import make_ui +from rhodecode.lib.utils2 import safe_unicode def wrap_to_table(str_): @@ -214,7 +215,7 @@ class DiffProcessor(object): self.adds += 1 elif l.startswith('-') and not l.startswith('---'): self.removes += 1 - return l.decode('utf8', 'replace') + return safe_unicode(l) output = list(diffiterator) size = len(output) |