From 1291dfe5cf5b4c945ac8ae383814a5145fb1904d 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- C4/Templates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index b7f770d972..4f23dc700c 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.39.5