From: francois Date: Tue, 11 Nov 2008 21:08:03 +0000 (-0700) Subject: Fix an filename encoding issue with "tahoe cp" X-Git-Tag: allmydata-tahoe-1.3.0~429 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/COPYING.TGPPL.html?a=commitdiff_plain;h=c1f639d230bb32a10e8bc2400354bbb433335834;p=tahoe-lafs%2Ftahoe-lafs.git Fix an filename encoding issue with "tahoe cp" --- diff --git a/src/allmydata/scripts/tahoe_cp.py b/src/allmydata/scripts/tahoe_cp.py index 91cc1ea2..243fef80 100644 --- a/src/allmydata/scripts/tahoe_cp.py +++ b/src/allmydata/scripts/tahoe_cp.py @@ -340,7 +340,7 @@ class TahoeDirectoryTarget: if self.writecap: url = self.nodeurl + "/".join(["uri", urllib.quote(self.writecap), - urllib.quote(name)]) + urllib.quote(name.encode('utf-8'))]) self.children[name] = TahoeFileTarget(self.nodeurl, mutable, writecap, readcap, url) else: