summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-24 18:40:12 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-24 18:40:12 +0000
commit999c17a01b11c1925be23763e0ec6b70e7ed6522 (patch)
tree86cb2de145dbe4d0e3a48eab65efc18ba3aeec4c /urpm
parent1b844f017bf9e5726ccafcbfdc46708903644211 (diff)
downloadurpmi-999c17a01b11c1925be23763e0ec6b70e7ed6522.tar
urpmi-999c17a01b11c1925be23763e0ec6b70e7ed6522.tar.gz
urpmi-999c17a01b11c1925be23763e0ec6b70e7ed6522.tar.bz2
urpmi-999c17a01b11c1925be23763e0ec6b70e7ed6522.tar.xz
urpmi-999c17a01b11c1925be23763e0ec6b70e7ed6522.zip
Locale::gettext is not optional in urpmi.
Diffstat (limited to 'urpm')
-rw-r--r--urpm/msg.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index 151f016b..44f1280d 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -6,12 +6,10 @@ our @ISA = 'Exporter';
our @EXPORT = qw(N log_it to_utf8 message_input message toMb from_utf8);
#- I18N.
-eval {
- require Locale::gettext;
- use POSIX qw(LC_ALL);
- POSIX::setlocale(LC_ALL, "");
- Locale::gettext::textdomain("urpmi");
-};
+use Locale::gettext;
+use POSIX qw(LC_ALL);
+POSIX::setlocale(LC_ALL, "");
+Locale::gettext::textdomain("urpmi");
my $codeset; #- encoding of the current locale
eval {