From 999c17a01b11c1925be23763e0ec6b70e7ed6522 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 24 Feb 2005 18:40:12 +0000 Subject: Locale::gettext is not optional in urpmi. --- urpm/msg.pm | 10 ++++------ 1 file 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 { -- cgit v1.2.1