]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix an filename encoding issue with "tahoe cp"
authorfrancois <francois@ctrlaltdel.ch>
Tue, 11 Nov 2008 21:08:03 +0000 (14:08 -0700)
committerfrancois <francois@ctrlaltdel.ch>
Tue, 11 Nov 2008 21:08:03 +0000 (14:08 -0700)
src/allmydata/scripts/tahoe_cp.py

index 91cc1ea2827668fc1754941368d922e23b0b8941..243fef8083eaccc0f5085aa0c9aea2933693113a 100644 (file)
@@ -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: