Rev 1577: Decode to avoid failures because of strange locales. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk
Jelmer Vernooij
jelmer at samba.org
Sat Aug 9 13:42:58 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/trunk
------------------------------------------------------------
revno: 1577
revision-id: jelmer at samba.org-20080809124009-2unkl39amx2bch0d
parent: jelmer at samba.org-20080809122506-iuldk0zquo4t5nxb
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sat 2008-08-09 14:40:09 +0200
message:
Decode to avoid failures because of strange locales.
modified:
logwalker.py logwalker.py-20060621215743-c13fhfnyzh1xzwh2-1
=== modified file 'logwalker.py'
--- a/logwalker.py 2008-07-21 20:46:23 +0000
+++ b/logwalker.py 2008-08-09 12:40:09 +0000
@@ -223,7 +223,7 @@
:param name: Name of the revision property.
:param value: Contents of the revision property.
"""
- self.cachedb.execute("replace into revprop (rev, name, value) values (?, ?, ?)", (rev, name, value))
+ self.cachedb.execute("replace into revprop (rev, name, value) values (?, ?, ?)", (rev, name.decode("utf-8"), value.decode("utf-8")))
def insert_revprops(self, revision, revprops):
for k,v in revprops.items():
More information about the bazaar-commits
mailing list