summaryrefslogtreecommitdiffstats
path: root/proxy_wizard/Squid.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-18 17:35:50 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-18 17:35:50 +0000
commit7ddceac8e26887c3b8b5aa027c326cc979fcc9f8 (patch)
treecec698bb6e121069a89aace2bb6dcbc942bd5da7 /proxy_wizard/Squid.pm
parent74aa941fac3dc6acfdbdba059547bdacdb345ab7 (diff)
downloaddrakwizard-7ddceac8e26887c3b8b5aa027c326cc979fcc9f8.tar
drakwizard-7ddceac8e26887c3b8b5aa027c326cc979fcc9f8.tar.gz
drakwizard-7ddceac8e26887c3b8b5aa027c326cc979fcc9f8.tar.bz2
drakwizard-7ddceac8e26887c3b8b5aa027c326cc979fcc9f8.tar.xz
drakwizard-7ddceac8e26887c3b8b5aa027c326cc979fcc9f8.zip
fix garbaging UTF-8 when localized messages are read (#37314)
Diffstat (limited to 'proxy_wizard/Squid.pm')
-rwxr-xr-xproxy_wizard/Squid.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm
index e0c0de7f..2a315d96 100755
--- a/proxy_wizard/Squid.pm
+++ b/proxy_wizard/Squid.pm
@@ -34,7 +34,7 @@ my $HOSTNAME = $wiz->{net}->network_get("HOSTNAME");
my $DOMAINNAME = chomp_(`dnsdomainname`);
my $SHORTHOSTNAME = chomp_(`hostname -s`);
if (!$HOSTNAME) { $HOSTNAME = chomp_(`hostname`) }
-my $df = -d '/var/spool/squid' ? `/bin/df -m /var/spool/squid` : `/bin/df -m /var/spool`;
+my $df = common::to_utf8(scalar(-d '/var/spool/squid' ? `/bin/df -m /var/spool/squid` : `/bin/df -m /var/spool`));
my ($free_disk) = $df =~ m/\d+\s+\d+\s+\d+\s+(\d+)/;
my $mem = `/usr/bin/free -m`;
($mem) = $mem =~ /Mem:\s+(\d+)/;