1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 23:07:55 +01:00

handle utf8 characters from /etc/passwd

This commit is contained in:
Kay Sievers 2006-05-01 03:40:22 +02:00
parent 2326acfa95
commit 281bf0cf4e

View file

@ -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;
}
}