summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/lang.pm2
3 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 4bb92f104..5f9227249 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,7 @@
- diskdrake:
o set pt_type according to fs_type before flag cases (mga#16029)
+- localedrake:
+ o fix reading back IM config (mga#15761)
Version 16.99 - 20 May 2015
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 9eead82e5..5cff2c468 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,5 +1,7 @@
- die is not an option here (mga#8819)
o just log the faillure and offer to either retry or abort
+- locale setting
+ o fix reading back IM config (mga#15761)
- partitioning:
o set pt_type according to fs_type before flag cases (mga#16029)
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index f9ab88892..7deafa956 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1345,7 +1345,7 @@ sub read {
$f2 = "$::prefix/etc/sysconfig/i18n" if ! -e $f2 && -e "$::prefix/etc/sysconfig/i18n";
my %h = getVarsFromSh($b_user_only && -e $f1 ? $f1 : $f2);
# Fill in defaults (from LANG= variable)
- %h = map { $_ => $h{$_} || $h{LANG} || 'en_US' } @locale_conf_fields;
+ $h{$_} ||= $h{LANG} || 'en_US' foreach @locale_conf_fields;
my $locale = system_locales_to_ourlocale($h{LC_MESSAGES}, $h{LC_MONETARY});
if (find { $h{$_} } @IM_i18n_fields) {