diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-05-01 03:40:22 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-05-01 03:40:22 +0200 |
commit | 281bf0cf4e1646237daa15ab6b032d6dd9aee0c9 (patch) | |
tree | 0219c0a298d8a06df0b78ee7de74c69fd85c1470 | |
parent | 2326acfa95ac86a53804ca8eeeb482c2f9265e34 (diff) | |
download | git-281bf0cf4e1646237daa15ab6b032d6dd9aee0c9.tar.gz |
handle utf8 characters from /etc/passwd
-rwxr-xr-x | gitweb.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitweb.cgi b/gitweb.cgi index c1bb62459d..9056a7fda9 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -787,7 +787,7 @@ sub get_file_owner { } my $owner = $gcos; $owner =~ s/[,;].*$//; - return $owner; + return decode("utf8", $owner, Encode::FB_DEFAULT); } sub git_read_projects { @@ -823,7 +823,7 @@ sub git_read_projects { if (-e "$projectroot/$path/HEAD") { my $pr = { path => $path, - owner => $owner, + owner => decode("utf8", $owner, Encode::FB_DEFAULT), }; push @list, $pr } @@ -1025,7 +1025,7 @@ sub git_summary { $pr = unescape($pr); $ow = unescape($ow); if ($pr eq $project) { - $owner = $ow; + $owner = decode("utf8", $ow, Encode::FB_DEFAULT); last; } } |