git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make feed title valid utf8

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 29, 2011, 19:48 UTC
Message-ID
<m38vmylnfu.fsf@localhost.localdomain>
In-Reply-To
<CAKD0UuxFVtCRT+hqO5vkDRanaX3Gvwf9MAFqNUwAiFA+wEwxXg@mail.gmail.com>
Subject: gitweb: Make feed title valid utf8
Jürgen Kreileder <jk@blackdown.de> writes:
Show 21 quoted lines
> gitweb doesn't properly handle UTF8 site names when generating feed titles.
> 
> Signed-off-by: Juergen Kreileder <jk@blackdown.de>
> ---
>  gitweb/gitweb.perl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
> index 4f0c3bd..a2838c3 100755
> --- a/gitweb/gitweb.perl
> +++ b/gitweb/gitweb.perl
> @@ -7482,7 +7482,7 @@ sub git_feed {
>  	return if ($cgi->request_method() eq 'HEAD');
> 
>  	# header variables
> -	my $title = "$site_name - $project/$action";
> +	my $title = to_utf8($site_name) . " - " . to_utf8($project) . "/$action";
>  	my $feed_type = 'log';
>  	if (defined $hash) {
>  		$title .= " - '$hash'";
> -- 

Thanks. With the minor nit of prefixing subject with subsystem designation, i.e. with "gitweb: " -- ACK.

-- 
Jakub Narębski
Previous: Jürgen KreilederNext: Junio C Hamano
Message 2 of 3 in “Make feed title valid utf8”
  1. Make feed title valid utf8Jürgen Kreileder, Nov 27, 2011
  2. Jakub NarebskiNov 29, 2011
  3. Junio C HamanoNov 29, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.