From 6d91a3fd075fb747688b85cb72088261bf0395d5 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 1 Feb 2013 22:49:22 +0000 Subject: [PATCH] Handle junk at the end of revision strings svn: r21276 --- gramps/gen/svn_revision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/svn_revision.py b/gramps/gen/svn_revision.py index 3200b250a..3fba46a54 100644 --- a/gramps/gen/svn_revision.py +++ b/gramps/gen/svn_revision.py @@ -27,7 +27,7 @@ if sys.version_info[0] < 3: cuni = unicode else: def to_utf8(s): - return s.decode("utf-8") + return s.decode("utf-8", errors = 'replace') cuni = to_utf8 def get_svn_revision(path=""):