~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-20 22:54:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2027.
  • Revision ID: john@arbash-meinel.com-20060920225418-76ce8b371260ef08
Fix bug #56815 by exporting paths in utf8 to tarfile and zipfile

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
 
247
247
    def get_tar_item(self, root, dp, now, tree):
248
248
        """Get a tarfile item and a file stream for its content."""
249
 
        item = tarfile.TarInfo(pathjoin(root, dp))
 
249
        item = tarfile.TarInfo(pathjoin(root, dp).encode('utf8'))
250
250
        # TODO: would be cool to actually set it to the timestamp of the
251
251
        # revision it was last changed
252
252
        item.mtime = now