summaryrefslogtreecommitdiffstats
path: root/urpm/msg.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-28 08:57:58 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-28 08:57:58 +0000
commit6e0908fc5918ffd8b1a5b00e1c31e5056fb99af1 (patch)
tree59091464f349e55c6b5b88c73ac904e64519598d /urpm/msg.pm
parentc18fd26df23f8cfc8cf0fada3af5d85ef4c33732 (diff)
downloadurpmi-6e0908fc5918ffd8b1a5b00e1c31e5056fb99af1.tar
urpmi-6e0908fc5918ffd8b1a5b00e1c31e5056fb99af1.tar.gz
urpmi-6e0908fc5918ffd8b1a5b00e1c31e5056fb99af1.tar.bz2
urpmi-6e0908fc5918ffd8b1a5b00e1c31e5056fb99af1.tar.xz
urpmi-6e0908fc5918ffd8b1a5b00e1c31e5056fb99af1.zip
Fix locale handling and the --no-locales command-line argument
Diffstat (limited to 'urpm/msg.pm')
-rw-r--r--urpm/msg.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index fb5264c7..d913b233 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -12,13 +12,16 @@ my $yesexpr = N("Yy");
eval {
require Locale::gettext;
use POSIX qw(LC_ALL);
- setlocale(LC_ALL, "");
+ POSIX::setlocale(LC_ALL, "");
Locale::gettext::textdomain("urpmi");
};
sub N {
my ($format, @params) = @_;
- sprintf(eval { Locale::gettext::gettext($format || '') } || $format, @params);
+ sprintf(
+ eval { Locale::gettext::gettext($format || '') } || $format,
+ @params,
+ );
}
sub log_it {