From: Moritz Bunkus Date: Mon, 9 Jan 2012 16:19:40 +0000 (+0100) Subject: LANGUAGE-Dateien als UTF-8 einlesen X-Git-Tag: release-2.7.0beta1~81 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6c45a4db1503cc140e66b55386d55e4fbddbc680;p=kivitendo-erp.git LANGUAGE-Dateien als UTF-8 einlesen Fix für Bug 1720. --- diff --git a/SL/User.pm b/SL/User.pm index 640299d8a..49ba33924 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -77,9 +77,9 @@ sub country_codes { my @dir = grep(!/(^\.\.?$|\..*)/, readdir(DIR)); foreach my $dir (@dir) { - next unless open(FH, "locale/$dir/LANGUAGE"); - @language = ; - close FH; + next unless open(my $fh, '<:encoding(UTF-8)', "locale/$dir/LANGUAGE"); + @language = <$fh>; + close $fh; $cc{$dir} = "@language"; }