]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/git.pm
git: Fix utf-8 encoding of author names.
[ikiwiki.git] / IkiWiki / Plugin / git.pm
index 042c69f5a043699ff275f4acb7433a9482a366c8..12f3a74cb7a11178b29fae3300f9e84db76c07b7 100644 (file)
@@ -447,7 +447,7 @@ sub rcs_commit_staged ($$$) {
        # Set the commit author and email to the web committer.
        my %env=%ENV;
        if (defined $user || defined $ipaddr) {
-               my $u=defined $user ? $user : $ipaddr;
+               my $u=encode_utf8(defined $user ? $user : $ipaddr);
                $ENV{GIT_AUTHOR_NAME}=$u;
                $ENV{GIT_AUTHOR_EMAIL}="$u\@web";
        }