Subject: | Filesys::DiskFree requires LANG=en_US |
Date: | Tue, 3 Jul 2007 14:27:29 -0000 |
To: | bug-Filesys-DiskFree [...] rt.cpan.org |
From: | Michael Weinberger <Michael.Weinberger [...] neddix.de> |
The header line of the df -P command output is not recognized when environment variable LANG is not equal to en_US.
Example:
export LANG="fr_CA"
echo 'use Filesys::DiskFree;$df=new Filesys::DiskFree;$df->df();'|perl -w
OUTPUT:
Argument "de" isn't numeric in multiplication (*) at /usr/lib/perl5/vendor_perl/5.8.5/Filesys/DiskFree.pm line 144, <HANDLE> line 1.
Argument "fich." isn't numeric in multiplication (*) at /usr/lib/perl5/vendor_perl/5.8.5/Filesys/DiskFree.pm line 145, <HANDLE> line 1.
Argument "1024-blocs" isn't numeric in multiplication (*) at /usr/lib/perl5/vendor_perl/5.8.5/Filesys/DiskFree.pm line 146, <HANDLE> line 1.
SYSTEM:
Linux sme7 2.6.9-55.ELsmp #1 SMP Wed May 2 14:28:44 EDT 2007 i686 i686 i386 GNU/Linux
Perl, v5.8.5 built for i386-linux-thread-multi
Michael Weinberger