Your message dated Mon, 24 Jul 2006 12:51:49 +0100 with message-id <[EMAIL PROTECTED]> has caused the Debian Bug report #374957, regarding cannot handle UTF-8-encoded embedded stylesheets to be marked as having been forwarded to the upstream software author(s) docutils devel list <[EMAIL PROTECTED]>.
(NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Hi, I am contacting you as one of the maintainers of docutils in Debian, but also as a user who ran into the problem detailed below. I somehow ended up not forwarding this to you guys, and I cannot find information online about this problem. Could you please take note and keep [EMAIL PROTECTED] on CC for all replies? Thanks, ----- Forwarded message from martin f krafft <[EMAIL PROTECTED]> ----- With the docutils default to embed stylesheets, if the stylesheet I provide and pass in to rst2html via the --stylesheet= option is UTF-8-encoded, docutils dies: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 100: ordinal not in range(128) The specified output encoding (utf-8) cannot handle all of the output. Try setting "--output-encoding-error-handler" to * "xmlcharrefreplace" (for HTML & XML output); Traceback (most recent call last): File "/usr/bin/rst2html", line 25, in ? publish_cmdline(writer_name='html', description=description) File "/usr/lib/site-python/docutils/core.py", line 335, in publish_cmdline config_section=config_section, enable_exit_status=enable_exit_status) File "/usr/lib/site-python/docutils/core.py", line 217, in publish self.report_Exception(error) File "/usr/lib/site-python/docutils/core.py", line 256, in report_Exception self.report_UnicodeError(error) File "/usr/lib/site-python/docutils/core.py", line 285, in report_UnicodeError sys.stderr.write( UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128) Passing --link-stylesheet fixes the issue. Setting @charset "utf-8"; in the first line does not help. I would suggest fixing this by explicitly declaring the content encoding for embedded stylesheets, unless the parent document is already utf-8 (which it is in my case). ----- End forwarded message ----- -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system there's an old proverb that says just about whatever you want it to.
signature.asc
Description: Digital signature (GPG/PGP)
--- End Message ---

