summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 695c37b18..11e0efaa0 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -954,10 +954,9 @@ sub system_locales_to_ourlocale {
}
sub read {
- my ($prefix, $user_only) = @_;
- $prefix ||= "";
- my ($f1, $f2) = ("$prefix$ENV{HOME}/.i18n", "$prefix/etc/sysconfig/i18n");
- my %h = getVarsFromSh($user_only && -e $f1 ? $f1 : $f2);
+ my ($b_user_only) = @_;
+ my ($f1, $f2) = ("$::prefix$ENV{HOME}/.i18n", "$::prefix/etc/sysconfig/i18n");
+ my %h = getVarsFromSh($b_user_only && -e $f1 ? $f1 : $f2);
my $locale = system_locales_to_ourlocale($h{LC_MESSAGES} || 'en_US', $h{LC_MONETARY} || 'en_US');
if ($h{XIM_PROGRAM}) {