#84 specifying theme and theme overwrite gives unicode error

closed
nobody
S5 writer (3)
3
2009-10-03
2007-04-14
Jeff Rush
No

With rst2s5.py, by enabling both the overwriting of theme files and specifying a theme, the following traceback occurs.

Oddly, you can specify -either- the overwrite option -or- the theme and it works, but not both.

~/.docutils
[s5_html writer]
overwrite_theme_files: yes
theme: small-black

jeff@kim ~/notes/python/gstreamer $ rst2s5.py --traceback presentation.txt presentation.html
Traceback (most recent call last):
File "/usr/local/bin/rst2s5.py", line 24, in <module>
publish_cmdline(writer_name='s5', description=description)
File "/usr/local/lib/python2.5/site-packages/docutils/core.py", line 335, in publish_cmdline
config_section=config_section, enable_exit_status=enable_exit_status)
File "/usr/local/lib/python2.5/site-packages/docutils/core.py", line 204, in publish
output = self.writer.write(self.document, self.destination)
File "/usr/local/lib/python2.5/site-packages/docutils/writers/__init__.py", line 76, in write
self.translate()
File "/usr/local/lib/python2.5/site-packages/docutils/writers/html4css1/__init__.py", line 156, in translate
self.visitor = visitor = self.translator_class(self.document)
File "/usr/local/lib/python2.5/site-packages/docutils/writers/s5_html/__init__.py", line 155, in __init__
self.setup_theme()
File "/usr/local/lib/python2.5/site-packages/docutils/writers/s5_html/__init__.py", line 173, in setup_theme
self.copy_theme()
File "/usr/local/lib/python2.5/site-packages/docutils/writers/s5_html/__init__.py", line 208, in copy_theme
if ( self.copy_file(f, path, dest)
File "/usr/local/lib/python2.5/site-packages/docutils/writers/s5_html/__init__.py", line 270, in copy_file
'ui/default', dest_dir[dest_dir.rfind('ui/'):]))
UnicodeDecodeError: 'ascii' codec can't decode byte 0x91 in position 10: ordinal not in range(128)

Discussion

  • Jeff Rush

    Jeff Rush - 2007-04-14
    • summary: specifying theme and them overwrite gives unicode error --> specifying theme and theme overwrite gives unicode error
     
  • Günter Milde

    Günter Milde - 2009-09-07
    • labels: --> S5 writer
     
  • Günter Milde

    Günter Milde - 2009-09-18

    There has been some work on improved unicode support.
    Could you please test if this particular problem still occures with a recent snapshot or SVN checkout?

     
  • Günter Milde

    Günter Milde - 2009-09-18
    • priority: 5 --> 3
     
  • Günter Milde

    Günter Milde - 2009-09-18
    • status: open --> wont-fix
     
  • Günter Milde

    Günter Milde - 2009-09-18
    • status: wont-fix --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks