|
From: chaica <ch...@oh...> - 2009-04-25 15:25:27
|
Hi everyone,
I have filled the #2781177 bug.
I'm using the following configuration :
py["blog_language"] = "fr"
py["blog_encoding"] = "utf-8"
py["locale"] = "fr_FR.UTF-8"
When executing pyblosxom :
# pyblosxom-cmd staticrender
pyblosxom-cmd version 1.5 dev
Trying to import the config module....
Performing static rendering.
rendering 2 entries.
rendering 1 category indexes.
rendering 4 date indexes.
rendering 0 arbitrary urls.
(before) building 7 files.
building 7 files.
rendering '/firstpost.html' ...
rendering '/maparticipation.html' ...
Traceback (most recent call last):
File "/usr/bin/pyblosxom-cmd", line 5, in ?
pkg_resources.run_script('pyblosxom==1.5', 'pyblosxom-cmd')
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 448, in run_script
self.require(requires)[0].run_script(script_name, ns)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 1166, in run_script
execfile(script_filename, namespace, namespace)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/EGG-INFO/scripts/pyblosxom-cmd", line 25, in ?
sys.exit(command_line_handler("pyblosxom-cmd", sys.argv))
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/commandline.py", line 392, in command_line_handler
return f(command, argv)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/commandline.py", line 300, in run_static_renderer
return p.runStaticRenderer(options.incremental)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/pyblosxom.py", line 426, in runStaticRenderer
tools.render_url_statically(config, url, q)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/tools.py", line 929, in render_url_statically
response = render_url(cdict, url, q)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/tools.py", line 982, in render_url
p.run(static=True)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/pyblosxom.py", line 201, in run
blosxom_handler(self._request)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/pyblosxom.py", line 1046, in blosxom_handler
renderer.render()
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/renderers/blosxom.py", line 315, in render
self.write("".join(self.renderContent(self._content)))
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/renderers/blosxom.py", line 262, in renderContent
outputbuffer.append(self.renderTemplate(vars, "story", override=1))
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/renderers/blosxom.py", line 358, in renderTemplate
finaltext = tools.parse(self._request, entry, template)
File
"/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/Pyblosxom/tools.py", line 478, in parse
return _VAR_REGEXP.sub(replacer.replace, template)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 60:
ordinal not in range(128)
It seems to be a utf-8 issue because my entry file contains utf-8
special french characters.
Best regards,
Carl Chenet
|