[Python-modules-team] Bug#714317: python-docutils: ODT writer can't handle images with non-ASCII filenames: UnicodeEncodeError: 'ascii' codec can't encode characters
Jakub Wilk
jwilk at debian.org
Thu Jun 27 20:31:49 UTC 2013
Package: python-docutils
Version: 0.10-3
Severity: normal
The ODT writer cannot handle images with filenames that contain
non-ASCII characters:
$ rst2odt test.rst --traceback > /dev/null
Traceback (most recent call last):
File "/usr/bin/rst2odt", line 29, in <module>
description=description)
File "/usr/lib/pymodules/python2.7/docutils/core.py", line 551, in publish_cmdline_to_binary
config_section=config_section, enable_exit_status=enable_exit_status)
File "/usr/lib/pymodules/python2.7/docutils/core.py", line 219, in publish
output = self.writer.write(self.document, self.destination)
File "/usr/lib/pymodules/python2.7/docutils/writers/__init__.py", line 80, in write
self.translate()
File "/usr/lib/pymodules/python2.7/docutils/writers/odf_odt/__init__.py", line 554, in translate
self.assemble_my_parts()
File "/usr/lib/pymodules/python2.7/docutils/writers/odf_odt/__init__.py", line 573, in assemble_my_parts
self.store_embedded_files(zfile)
File "/usr/lib/pymodules/python2.7/docutils/writers/odf_odt/__init__.py", line 598, in store_embedded_files
destination1 = destination.decode('latin-1').encode('utf-8')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 18-20: ordinal not in range(128)
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.9-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-docutils depends on:
ii docutils-common 0.10-3
ii python 2.7.5-2
ii python-roman 1.4.0-2
ii python-support 1.0.15
Versions of packages python-docutils recommends:
ii docutils-doc 0.10-3
ii libpaper-utils 1.1.24+nmu2
ii python-imaging 1.1.7-4
ii python-lxml 3.2.0-1
ii python-pygments 1.6+dfsg-1
--
Jakub Wilk
-------------- next part --------------
.. image:: ???w.png
:width: 16
:height: 16
More information about the Python-modules-team
mailing list