summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
32fb9f2)
Prevents utf8 output from being parsed as latin1 if open modes aren't set
(apparently with mod_perl execution at least).
}
-r $source or die "Requested file not found\n";
}
-r $source or die "Requested file not found\n";
if (eval { require Text::VimColor and Text::VimColor->VERSION(0.12) }) {
delete $Text::VimColor::SYNTAX_TYPE{Underlined};
my %TYPETAG = (
if (eval { require Text::VimColor and Text::VimColor->VERSION(0.12) }) {
delete $Text::VimColor::SYNTAX_TYPE{Underlined};
my %TYPETAG = (
if (!$_->[0] and $_->[1] =~ s/^(\s*)([A-Z]\w+(?:::\w+)+)(?![^;\s])//) {
printf '%s<a href="%s">%s</a>', $1, "/source/$2", $2;
}
if (!$_->[0] and $_->[1] =~ s/^(\s*)([A-Z]\w+(?:::\w+)+)(?![^;\s])//) {
printf '%s<a href="%s">%s</a>', $1, "/source/$2", $2;
}
- print Text::VimColor::_xml_escape($_->[1]);
+ print Text::VimColor::_xml_escape(Encode::decode_utf8($_->[1]));
print "</$tag>" if $tag;
}
print "</pre>\n";
}
else {
print "</$tag>" if $tag;
}
print "</pre>\n";
}
else {
print "<pre>\n";
print EscapeHTML(Encode::decode_utf8(ReadFile($source)));
print "</pre>\n";
print "<pre>\n";
print EscapeHTML(Encode::decode_utf8(ReadFile($source)));
print "</pre>\n";