Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
handle utf8 characters from /etc/passwd
author
Kay Sievers
<kay.sievers@suse.de>
Mon, 1 May 2006 01:40:22 +0000
(
03:40
+0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Mon, 1 May 2006 01:40:22 +0000
(
03:40
+0200)
gitweb.cgi
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2326acf
)
diff --git
a/gitweb.cgi
b/gitweb.cgi
index c1bb62459d74c7340d64ea831bdc6bdc0ef5c312..9056a7fda9a85ea1d0b01aae69506ad2d815ec94 100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-787,7
+787,7
@@
sub get_file_owner {
}
my $owner = $gcos;
$owner =~ s/[,;].*$//;
}
my $owner = $gcos;
$owner =~ s/[,;].*$//;
- return
$owner
;
+ return
decode("utf8", $owner, Encode::FB_DEFAULT)
;
}
sub git_read_projects {
}
sub git_read_projects {
@@
-823,7
+823,7
@@
sub git_read_projects {
if (-e "$projectroot/$path/HEAD") {
my $pr = {
path => $path,
if (-e "$projectroot/$path/HEAD") {
my $pr = {
path => $path,
- owner =>
$owner
,
+ owner =>
decode("utf8", $owner, Encode::FB_DEFAULT)
,
};
push @list, $pr
}
};
push @list, $pr
}
@@
-1025,7
+1025,7
@@
sub git_summary {
$pr = unescape($pr);
$ow = unescape($ow);
if ($pr eq $project) {
$pr = unescape($pr);
$ow = unescape($ow);
if ($pr eq $project) {
- $owner =
$ow
;
+ $owner =
decode("utf8", $ow, Encode::FB_DEFAULT)
;
last;
}
}
last;
}
}