#113 writers/odf_odt: Use only ASCII filenames in ODF packages

None
open
nobody
None
5
2013-08-05
2013-08-05
Michael Schutte
No

The odf_odt writer embeds images in its output files and uses the original filenames as part of the embedded filenames. Since the OpenDocument standard does not specify the filename charset, recode to ASCII (dropping non-representable characters) to be on the safe side.

The actual reason that brought about this patch is an invalid assumption about character sets in docutils.writers.odf_odt.Writer.store_embedded_files(). This has been reported as Debian bug http://bugs.debian.org/714317.

1 Attachments

Discussion