Handle junk at the end of revision strings

svn: r21276
This commit is contained in:
John Ralls 2013-02-01 22:49:22 +00:00
parent fd61b21a2d
commit 6d91a3fd07

View File

@ -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=""):