/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/export/tar_exporter.py

  • Committer: Parth Malwankar
  • Date: 2010-04-14 10:12:22 UTC
  • mto: This revision was merged to the branch mainline in revision 5156.
  • Revision ID: parth.malwankar@gmail.com-20100414101222-uiu2ucurptoz1dg1
improved bug description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
            root = export.get_root_name(dest)
51
51
 
52
52
        # tarfile.open goes on to do 'os.getcwd() + dest' for opening
53
 
        # the tar file. With dest being unicode we need to encode before
54
 
        # passing it on. Using os.getcwdu() is probably the 'correct' fix
55
 
        # to avoid UnicodeDecodeError.
56
 
        # See bug #413406 for discussion and http://bugs.python.org/issue8396
 
53
        # the tar file. With dest being unicode, this throws UnicodeDecodeError
 
54
        # unless we encode dest before passing it on. This works around
 
55
        # upstream python bug http://bugs.python.org/issue8396
 
56
        # (fixed in Python 2.6.5 and 2.7b1)
57
57
        ball = tarfile.open(dest.encode(osutils._fs_enc), 'w:' + compression)
58
58
 
59
59
    for dp, ie in _export_iter_entries(tree, subdir):