ODFDoc : internal permission of files and encoding.
svn: r12514
This commit is contained in:
parent
e5794d4999
commit
a01e27d254
@ -531,9 +531,10 @@ class ODFDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc, BaseDoc.DrawDoc):
|
||||
self.cntnt.write('</text:span>')
|
||||
|
||||
def _add_zip(self, zfile, name, data, t):
|
||||
zipinfo = zipfile.ZipInfo(name.encode('latin-1'))
|
||||
zipinfo = zipfile.ZipInfo(name.encode('utf-8'))
|
||||
zipinfo.date_time = t
|
||||
zipinfo.compress_type = zipfile.ZIP_DEFLATED
|
||||
zipinfo.external_attr = 0644 << 16L
|
||||
zfile.writestr(zipinfo, data)
|
||||
|
||||
def _write_zip(self):
|
||||
|
Loading…
Reference in New Issue
Block a user