From: Tomas Doran Date: Sat, 21 Nov 2009 09:48:29 +0000 (+0000) Subject: Do the right thing with encoding output to avoid 'wide character in syswrite. Change... X-Git-Tag: 0.000000_01~4^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fac828e08613444971c761277d9eb387125d3099;p=catagits%2FGitalist.git Do the right thing with encoding output to avoid 'wide character in syswrite. Change template to only encode html bad chars, not all extended chars --- diff --git a/Makefile.PL b/Makefile.PL index 20d6539..9b8074e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -21,6 +21,7 @@ requires 'Catalyst::Runtime' => '5.80003'; requires 'Catalyst::Plugin::ConfigLoader'; requires 'Catalyst::Plugin::StackTrace'; requires 'Catalyst::Plugin::Static::Simple'; +requires 'Catalyst::Plugin::Unicode::Encoding'; requires 'Catalyst::Action::RenderView'; requires 'Catalyst::Component::InstancePerContext'; requires 'Catalyst::View::TT'; diff --git a/lib/Gitalist.pm b/lib/Gitalist.pm index 9ca78a7..84a9980 100644 --- a/lib/Gitalist.pm +++ b/lib/Gitalist.pm @@ -8,8 +8,10 @@ extends 'Catalyst'; use Catalyst qw/ ConfigLoader + Unicode::Encoding Static::Simple - StackTrace/; + StackTrace +/; our $VERSION = '0.01'; diff --git a/root/_shortlog.tt2 b/root/_shortlog.tt2 index fc39b11..19caaf1 100644 --- a/root/_shortlog.tt2 +++ b/root/_shortlog.tt2 @@ -26,7 +26,7 @@ [% time_since(line.authored_time) %] [% line.author.name | html %] - [% short_cmt(line.comment) | html_entity %] + [% short_cmt(line.comment) | html %] [% INCLUDE '_refs.tt2' object = line %]