]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Rcs/svn.pm
* Encode & in diffurl in examples, to conform to pedantic rules.
[ikiwiki.git] / IkiWiki / Rcs / svn.pm
index 5474e3be2537a311896e10c71613fa19da243031..be4106a02d143704f1e9bf2496e1e0b56dcf43b2 100644 (file)
@@ -64,7 +64,8 @@ sub rcs_commit ($$$) { #{{{
                        }
                }
 
                        }
                }
 
-               if (system("svn", "commit", "--quiet", "-m",
+               if (system("svn", "commit", "--quiet", 
+                          "--encoding", "UTF-8", "-m",
                           possibly_foolish_untaint($message),
                           "$config{srcdir}") != 0) {
                        my $conflict=readfile("$config{srcdir}/$file");
                           possibly_foolish_untaint($message),
                           "$config{srcdir}") != 0) {
                        my $conflict=readfile("$config{srcdir}/$file");
@@ -201,9 +202,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,