diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-10 22:16:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-10 22:16:47 -0700 |
commit | 9c5164032f4c25090e6139a202825febb830feea (patch) | |
tree | 72d8cf819b6afe936f8dfb5e7513b10f7bb6d97e /gitweb/gitweb.perl | |
parent | Merge branch 'ns/am-raw-email' (diff) | |
parent | gitweb: parse_commit_text encoding fix (diff) | |
download | tgif-9c5164032f4c25090e6139a202825febb830feea.tar.xz |
Merge branch 'zf/maint-gitweb-acname'
* zf/maint-gitweb-acname:
gitweb: parse_commit_text encoding fix
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-x | gitweb/gitweb.perl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 37120a3e60..9d66bc61a4 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2573,7 +2573,7 @@ sub parse_commit_text { } elsif ((!defined $withparents) && ($line =~ m/^parent ([0-9a-fA-F]{40})$/)) { push @parents, $1; } elsif ($line =~ m/^author (.*) ([0-9]+) (.*)$/) { - $co{'author'} = $1; + $co{'author'} = to_utf8($1); $co{'author_epoch'} = $2; $co{'author_tz'} = $3; if ($co{'author'} =~ m/^([^<]+) <([^>]*)>/) { @@ -2583,10 +2583,9 @@ sub parse_commit_text { $co{'author_name'} = $co{'author'}; } } elsif ($line =~ m/^committer (.*) ([0-9]+) (.*)$/) { - $co{'committer'} = $1; + $co{'committer'} = to_utf8($1); $co{'committer_epoch'} = $2; $co{'committer_tz'} = $3; - $co{'committer_name'} = $co{'committer'}; if ($co{'committer'} =~ m/^([^<]+) <([^>]*)>/) { $co{'committer_name'} = $1; $co{'committer_email'} = $2; |