projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Patch from Recai to fix utf8 issues in git backend.
[ikiwiki.git]
/
IkiWiki
/
Rcs
/
git.pm
diff --git
a/IkiWiki/Rcs/git.pm
b/IkiWiki/Rcs/git.pm
index f29ffa16238fb1826377eda6ccfdf491485cfa10..6cbcfd14e925ae45e40bcba12b0b3f24b1a93653 100644
(file)
--- a/
IkiWiki/Rcs/git.pm
+++ b/
IkiWiki/Rcs/git.pm
@@
-3,6
+3,8
@@
use warnings;
use strict;
use IkiWiki;
use warnings;
use strict;
use IkiWiki;
+use Encode;
+use open qw{:utf8 :std};
package IkiWiki;
package IkiWiki;
@@
-228,7
+230,7
@@
sub _parse_diff_tree (@) { #{{{
}
if (length $file) {
push @{ $ci{'details'} }, {
}
if (length $file) {
push @{ $ci{'details'} }, {
- 'file' =>
$file
,
+ 'file' =>
decode_utf8($file)
,
'sha1_from' => $sha1_from,
'sha1_to' => $sha1_to,
};
'sha1_from' => $sha1_from,
'sha1_to' => $sha1_to,
};
@@
-449,9
+451,7
@@
sub rcs_notify () { #{{{
}
$subject .= " by $user";
}
$subject .= " by $user";
- my $template = HTML::Template->new(
- filename => "$config{templatedir}/notifymail.tmpl"
- );
+ my $template = template("notifymail.tmpl");
$template->param(
wikiname => $config{wikiname},
diff => $diff,
$template->param(
wikiname => $config{wikiname},
diff => $diff,