From 5e01b2fe060cdcea3e3020db335e1ce0b012059c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 14 Sep 2015 15:02:50 +0100 Subject: [PATCH] Bug 14817: Fix encoding issues in columns.def Test plan: 1/ Use a translated template (fr-FR or ar-Arab) 2/ Go on the tools/import_patrons.pl page 3/ The field names in the "default values" block should be correctly encoded. Signed-off-by: Josef Moravec --- C4/Templates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index b7f770d..4f23dc7 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -332,7 +332,7 @@ sub GetColumnDefs { # Build columns.def path my $path = "$htdocs/$theme/$lang/$columns_file"; my $fh; - if ( ! open ( $fh, q{<}, $path ) ) { + if ( ! open ( $fh, q{<:encoding(utf-8)}, $path ) ) { carp "Error opening $path. Check your templates."; return; } -- 2.1.4