releasing version 4.6-2
[chronicle.git] / debian / patches / fix_encoding_for_templates.patch
1 Subject: Fix template encoding problem
2 From: Kai Wasserbäch <curan@debian.org>
3 Last-Update: 2011-05-15
4 Forwarded: yes
5 ---
6  bin/chronicle |    4 ++++
7  1 file changed, 4 insertions(+)
8
9 --- a/bin/chronicle
10 +++ b/bin/chronicle
11 @@ -2798,6 +2798,10 @@ EOF
12  
13      my $t = HTML::Template->new( filename               => $file,
14                                   path                   => $dir,
15 +                                 filter                 => sub {
16 +                                         my $ref = shift;
17 +                                         ${$ref} = Encode::decode_utf8(${$ref});
18 +                                 },
19                                   loop_context_vars      => 1,
20                                   global_vars            => 1,
21                                   search_path_on_include => 1,