summaryrefslogtreecommitdiffstats
path: root/lib/network/network.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-09-02 12:36:50 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-09-02 12:36:50 +0000
commit61f01a83210d00906ecac9e5caf1b85747fc5168 (patch)
tree581ea0997b7f461cac166aafef6ec51cbeb82566 /lib/network/network.pm
parentac32948cb51673026aa54c4bb67e1e32862192b5 (diff)
downloaddrakx-net-61f01a83210d00906ecac9e5caf1b85747fc5168.tar
drakx-net-61f01a83210d00906ecac9e5caf1b85747fc5168.tar.gz
drakx-net-61f01a83210d00906ecac9e5caf1b85747fc5168.tar.bz2
drakx-net-61f01a83210d00906ecac9e5caf1b85747fc5168.tar.xz
drakx-net-61f01a83210d00906ecac9e5caf1b85747fc5168.zip
use from_utf8 instead of Encode::decode to better work within installer.
Diffstat (limited to 'lib/network/network.pm')
-rw-r--r--lib/network/network.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/network/network.pm b/lib/network/network.pm
index 1655ba9..eb88435 100644
--- a/lib/network/network.pm
+++ b/lib/network/network.pm
@@ -13,7 +13,6 @@ use run_program;
use network::tools;
use vars qw(@ISA @EXPORT);
use log;
-use Encode qw(encode decode);
our $network_file = "/etc/sysconfig/network";
my $resolv_file = "/etc/resolv.conf";
@@ -440,7 +439,7 @@ sub netprofile_delete {
}
sub netprofile_list() {
- map { if_(m!([^/]*)/$!, decode("utf8", $1)) } glob("$::prefix/etc/netprofile/profiles/*/");
+ map { if_(m!([^/]*)/$!, common::from_utf8($1)) } glob("$::prefix/etc/netprofile/profiles/*/");
}
sub netprofile_count() {