]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Render.pm
FUCK UTF8 fuck fuck fuck!!!
[git.ikiwiki.info.git] / IkiWiki / Render.pm
index 0dfa03cd4229f040ef17ae66579f1d3c4ca5ec35..22fba3a2fd1fe935e20b0fc2d5fc724d0219a790 100644 (file)
@@ -29,12 +29,10 @@ sub htmlize ($$) { #{{{
                $blosxom::version="is a proper perl module too much to ask?";
                use warnings 'all';
                do "/usr/bin/markdown";
-               require Encode;
+               use Encode;
        }
        
        if ($type eq '.mdwn') {
-               # Markdown does character based stuff that does not work
-               # well with utf-8 strings.
                $content=Encode::decode_utf8(Markdown::Markdown(Encode::encode_utf8($content)));
        }
        else {
@@ -232,7 +230,7 @@ sub check_overwrite ($$) { #{{{
 sub displaytime ($) { #{{{
        my $time=shift;
 
-       if ($config{timeformat} eq '%c') {
+       if ($config{timeformat} eq '%c' && ! exists $ENV{LC_CTIME}) {
                return scalar(localtime($time)); # optimisation
        }
        else {