[r21276]Handle junk at the end of revision strings
svn: r21417
This commit is contained in:
parent
8222d4c04c
commit
bfa28faf55
@ -27,7 +27,7 @@ if sys.version_info[0] < 3:
|
|||||||
cuni = unicode
|
cuni = unicode
|
||||||
else:
|
else:
|
||||||
def to_utf8(s):
|
def to_utf8(s):
|
||||||
return s.decode("utf-8")
|
return s.decode("utf-8", errors = 'replace')
|
||||||
cuni = to_utf8
|
cuni = to_utf8
|
||||||
|
|
||||||
def get_svn_revision(path=""):
|
def get_svn_revision(path=""):
|
||||||
|
Loading…
Reference in New Issue
Block a user