From a886a8d3e6f9213972f6e32df8c94357545b92de Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 14 May 2020 08:34:19 -0300 Subject: [PATCH] Bug 25501: use utf8 for open in tmpl_process3.pl Opening files using "":encoding(UTF-8)" removes the warning "wide character in print" installing translations To test: 1) Verify the error installing translations for any language 2) Apply the patch 3) Repeat 1), check warning is gone --- misc/translator/tmpl_process3.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl index 68c58f0cc6..d1d9c78a5f 100755 --- a/misc/translator/tmpl_process3.pl +++ b/misc/translator/tmpl_process3.pl @@ -22,6 +22,7 @@ use Locale::PO; use File::Temp qw( :POSIX ); use TmplTokenizer; use VerboseWarnings qw( :warn :die ); +use open ":std", ":encoding(UTF-8)"; ############################################################################### -- 2.17.1