Commit 8cb3dda2 authored by joshn's avatar joshn

Fix restoring single files.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1058 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent cedfc767
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment