Creole parser assumes ASCII
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wikkid Wiki |
In Progress
|
Undecided
|
Jeroen T. Vermeulen |
Bug Description
The creole parser breaks on non-ASCII characters.
Traceback (most recent call last):
File "/usr/lib/
self.result = application(
File "/usr/local/
resp = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/local/
response = view.render(
File "/usr/local/
return self._render(skin)
File "/usr/local/
return super(WikiPage, self)._render(skin)
File "/usr/local/
content = template.
File "/usr/lib/
return self.environmen
File "/usr/local/
{% extends "base.html" %}
File "/usr/local/
{% block content %}{% endblock %}
File "/usr/local/
{% block content %}{{ view.content }}
File "/usr/lib/
return getattr(obj, attribute)
File "/usr/local/
return formatter.
File "/usr/local/
return HtmlEmitter(
File "/usr/local/
self.
File "/usr/local/
re.
File "/usr/lib/
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/local/
replace(groups)
File "/usr/local/
self.
File "/usr/local/
re.
File "/usr/lib/
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/local/
replace(groups)
File "/usr/local/
self.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Related branches
- Tim Penhey: Needs Fixing
- Paul Hummer (community): Abstain
-
Diff: 12 lines (+1/-1)1 file modifiedwikkid/contrib/creole_1_1/creole.py (+1/-1)
Attaching a branch that seems to make it work for me, on cursory inspection. It's probably all wrong etc. so not bothering to write tests. Just an illustration.