diff options
author | joshn <joshn@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2009-06-04 23:50:58 +0000 |
---|---|---|
committer | joshn <joshn@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2009-06-04 23:50:58 +0000 |
commit | 55a4a7d925ab079617e74113d448f4540661e317 (patch) | |
tree | cf7eb6eae3a08893702c4ca5bccd3198df25171e /rdiff-backup/rdiff_backup/metadata.py | |
parent | 2717ce34a4c17ad87b021a0a51be89164ef7a2c3 (diff) | |
download | rdiff-backup-55a4a7d925ab079617e74113d448f4540661e317.tar.gz |
Gah. Fix unicode support for linux systems where the destination Python installation doesn't support unicode filenames.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@1057 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/metadata.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/metadata.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rdiff-backup/rdiff_backup/metadata.py b/rdiff-backup/rdiff_backup/metadata.py index 2e7031e..68b2cbc 100644 --- a/rdiff-backup/rdiff_backup/metadata.py +++ b/rdiff-backup/rdiff_backup/metadata.py @@ -376,17 +376,17 @@ class FlatFile: compress = 1 if mode == 'r': self.rp = rp_base - self.fileobj = rpath.UnicodeFile(self.rp.open("rb", compress)) + self.fileobj = rpath.MaybeUnicode(self.rp.open("rb", compress)) else: assert mode == 'w' if compress and check_path and not rp_base.isinccompressed(): def callback(rp): self.rp = rp - self.fileobj = rpath.UnicodeFile(rpath.MaybeGzip(rp_base, + self.fileobj = rpath.MaybeUnicode(rpath.MaybeGzip(rp_base, callback)) else: self.rp = rp_base assert not self.rp.lstat(), self.rp - self.fileobj = rpath.UnicodeFile(self.rp.open("wb", + self.fileobj = rpath.MaybeUnicode(self.rp.open("wb", compress = compress)) def write_record(self, record): |