diff options
author | joshn <joshn@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2009-06-23 23:56:30 +0000 |
---|---|---|
committer | joshn <joshn@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2009-06-23 23:56:30 +0000 |
commit | e06d52eeb71a6884a44cfab79c215c7fed04b533 (patch) | |
tree | 8746d75464c4a864435af3d8daf51865eee11edf | |
parent | 55a4a7d925ab079617e74113d448f4540661e317 (diff) | |
download | rdiff-backup-e06d52eeb71a6884a44cfab79c215c7fed04b533.tar.gz |
Fix restoring single files.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@1058 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index 8b0ecd4..10a8fde 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -1429,6 +1429,12 @@ class MaybeUnicode: data = unicode(data, 'utf-8') return data + def readline(self, length=-1): + data = self.fileobj.readline(length) + if Globals.use_unicode_paths: + data = unicode(data, 'utf-8') + return data + def write(self, buf): if Globals.use_unicode_paths: if type(buf) != unicode: |