From: Frank Lichtenheld Date: Sat, 13 Oct 2007 23:42:27 +0000 (+0200) Subject: ttxgettext: Handle UTF-8 input X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=3d001d13e938fe3dc712e777e01804f8187c32f4;p=deb%2Fpackages.git ttxgettext: Handle UTF-8 input We need this e.g. for non-ASCII chars in the txt templates. For HTML it should be easier to use entities for that. --- diff --git a/bin/ttxgettext b/bin/ttxgettext index 5e3aced..2afeafc 100755 --- a/bin/ttxgettext +++ b/bin/ttxgettext @@ -93,7 +93,7 @@ foreach (@ARGV) { } print "msgid \"\"\nmsgstr \"\"\n". - "\"Content-Type: text/plain; charset=ASCII\\n\"\n". + "\"Content-Type: text/plain; charset=UTF-8\\n\"\n". "\"Content-Transfer-Encoding: 8bit\\n\"\n\n"; foreach my $msgid (@msgids) { diff --git a/templates/txt/index.tmpl b/templates/txt/index.tmpl index dca0910..226f03e 100644 --- a/templates/txt/index.tmpl +++ b/templates/txt/index.tmpl @@ -2,7 +2,7 @@ [% g('All %s Packages in "%s"', organisation, suite) %] [% g('Generated:') _ ' ' _ timestamp.string %] -[% g('Copyright (C)') _ ' ' _ copyright.years _ ' ' _ copyright.name %]; +[% g('Copyright ©') _ ' ' _ copyright.years _ ' ' _ copyright.name %]; [% g('See for the license terms.', license.url) %] [% FOREACH packages -%]