}
if ($type eq '.mdwn') {
- # XXX explanation of this insanity wating on perl bug number
-# $content=Encode::encode_utf8($content);
+ # Workaround for perl bug (#376329)
+ $content=Encode::encode_utf8($content);
$content=Encode::encode_utf8($content);
$content=Markdown::Markdown($content);
$content=Encode::decode_utf8($content);
-# $content=Encode::decode_utf8($content);
+ $content=Encode::decode_utf8($content);
}
else {
error("htmlization of $type not supported");
Liambotis.
* Add insane double encode/decode to utf8 around call to markdown.
This works around a truely strange bug, which is apparently a bug in
- perl, which I lack space to describe here (see t/crazy-badass-perl-bug.t)
+ perl, #376329. Also added a test case for it.
* Improve layout of edit page so formatting help link is always visible w/o
getting in the way of the preview.