Commit c0613678 authored by owsla's avatar owsla

Ignore Extended Attributes which have Unicode characters outside the current

system representation.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@917 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 9bee3460
New in v1.1.18 (????/??/??)
---------------------------
Ignore Extended Attributes which have Unicode characters outside the current
system representation. These will be correctly handled when rdiff-backup
switches to Python 3, which will have full Unicode support. (Andrew Ferguson)
New in v1.1.17 (2008/07/17)
......
......@@ -150,7 +150,11 @@ def EA2Record(ea):
if not val: str_list.append(name)
else:
encoded_val = base64.encodestring(val).replace('\n', '')
str_list.append('%s=0s%s' % (C.acl_quote(name), encoded_val))
try:
str_list.append('%s=0s%s' % (C.acl_quote(name), encoded_val))
except UnicodeEncodeError:
log.Log("Warning: unable to store Unicode extended attribute %s"
% repr(name), 3)
return '\n'.join(str_list)+'\n'
def Record2EA(record):
......
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