[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5f1742e1556d3631fe797ee79137b706d8e1e9ee
Evergreen Git
git at git.evergreen-ils.org
Fri Dec 16 13:12:39 EST 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 5f1742e1556d3631fe797ee79137b706d8e1e9ee (commit)
from eaba45621b11324ea40b49e60d435c9977428299 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5f1742e1556d3631fe797ee79137b706d8e1e9ee
Author: Dan Scott <dscott at laurentian.ca>
Date: Sat Dec 10 10:43:47 2011 -0500
TPAC: Assume that templates are encoded in UTF-8
Per http://template-toolkit.org/docs/faq/index.html
under "Why do I get rubbish for my utf-8 templates?", Template::Toolkit
does not assume that templates are encoded in UTF-8, which runs counter
to current assumptions circa 2011.
Practically, this means that before this change any UTF8 characters
used for purposes such as Unicode art or otherwise would be garbled in
the generated Web page. This commit tells Template::Toolkit to assume
that the templates are UTF8 without forcing us to monkey with byte-order
markers.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
index 20a2e4d..afc50dc 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
@@ -35,6 +35,7 @@ sub handler {
my $text_handler = set_text_handler($ctx, $r);
my $tt = Template->new({
+ ENCODING => 'utf-8',
OUTPUT => ($as_xml) ? sub { parse_as_xml($r, $ctx, @_); } : $r,
INCLUDE_PATH => $ctx->{template_paths},
DEBUG => $ctx->{debug_template},
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list