diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-18 17:35:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-18 17:35:50 +0000 |
commit | 7ddceac8e26887c3b8b5aa027c326cc979fcc9f8 (patch) | |
tree | cec698bb6e121069a89aace2bb6dcbc942bd5da7 /proxy_wizard | |
parent | 74aa941fac3dc6acfdbdba059547bdacdb345ab7 (diff) | |
download | drakwizard-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')
-rwxr-xr-x | proxy_wizard/Squid.pm | 2 |
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+)/; |