[tahoe-dev] [tahoe-lafs] #629: 'tahoe backup' doesn't tolerate 8-bit filenames

tahoe-lafs trac at allmydata.org
Tue Mar 9 11:11:41 PST 2010


#629: 'tahoe backup' doesn't tolerate 8-bit filenames
----------------------------------+-----------------------------------------
 Reporter:  warner                |           Owner:  andrej
     Type:  defect                |          Status:  new   
 Priority:  major                 |       Milestone:  1.7.0 
Component:  code-frontend-cli     |         Version:  1.3.0 
 Keywords:  tahoe-backup unicode  |   Launchpad_bug:        
----------------------------------+-----------------------------------------

Comment(by jsgf):

 This patch fixes the crash I see with utf-8 encoded characters.

 {{{
 diff -rN -u old-tahoe-lafs/src/allmydata/scripts/cli.py new-tahoe-
 lafs/src/allmydata/scripts/cli.py
 --- old-tahoe-lafs/src/allmydata/scripts/cli.py 2010-03-09
 10:59:58.371372576 -0800
 +++ new-tahoe-lafs/src/allmydata/scripts/cli.py 2010-03-09
 10:59:58.529372862 -0800
 @@ -279,7 +279,7 @@
          self['exclude'] = set()

      def parseArgs(self, localdir, topath):
 -        self.from_dir = localdir
 +        self.from_dir = localdir.decode(sys.getfilesystemencoding())
          self.to_dir = topath

      def getSynopsis(Self):
 }}}

-- 
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/629#comment:9>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid


More information about the tahoe-dev mailing list