summaryrefslogtreecommitdiffstats
path: root/lib/network/network.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/network.pm')
-rw-r--r--lib/network/network.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/network.pm b/lib/network/network.pm
index 6dc90ed..1655ba9 100644
--- a/lib/network/network.pm
+++ b/lib/network/network.pm
@@ -13,6 +13,7 @@ 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";
@@ -439,7 +440,7 @@ sub netprofile_delete {
}
sub netprofile_list() {
- map { if_(m!([^/]*)/$!, $1) } glob("$::prefix/etc/netprofile/profiles/*/");
+ map { if_(m!([^/]*)/$!, decode("utf8", $1)) } glob("$::prefix/etc/netprofile/profiles/*/");
}
sub netprofile_count() {