projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7edc9f8
)
LANGUAGE-Dateien als UTF-8 einlesen
author
Moritz Bunkus
<moritz@bunkus.org>
Mon, 9 Jan 2012 16:19:40 +0000
(17:19 +0100)
committer
Moritz Bunkus
<moritz@bunkus.org>
Mon, 9 Jan 2012 16:19:40 +0000
(17:19 +0100)
Fix für Bug 1720.
SL/User.pm
patch
|
blob
|
history
diff --git
a/SL/User.pm
b/SL/User.pm
index
640299d
..
49ba339
100644
(file)
--- 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 = <
FH
>;
- close
FH
;
+ next unless open(
my $fh, '<:encoding(UTF-8)'
, "locale/$dir/LANGUAGE");
+ @language = <
$fh
>;
+ close
$fh
;
$cc{$dir} = "@language";
}