$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 {
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 {