Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 28879
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: TINITA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 5.808
Fixed in: (no value)



Subject: File::Listing documentation
File::Listing::parse_dir expects "ls -l" output in english. if you have a different locale, it doesn't parse. maybe you could add a little hint to do local $ENV{LANG} = "C"; before doing `ls -l`?
commit 1a029d1b9640cf9e637fb520b4973e54e583a518 Author: Gisle Aas <gisle@aas.no> Date: Thu Jul 24 00:21:05 2008 +0200 File::Listing only support English locales [RT#28879] diff --git a/lib/File/Listing.pm b/lib/File/Listing.pm index 7df9cae..a8b11ef 100644 --- a/lib/File/Listing.pm +++ b/lib/File/Listing.pm @@ -355,6 +355,7 @@ File::Listing - parse directory listing =head1 SYNOPSIS use File::Listing qw(parse_dir); + $ENV{LANG} = "C"; # dates in non-English locales not supported for (parse_dir(`ls -l`)) { ($name, $type, $size, $mtime, $mode) = @$_; next if $type ne 'f'; # plain file