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

Owner: Nobody in particular
Requestors: TINITA [...]

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

Subject: File::Listing documentation
Download (untitled) / with headers
text/plain 198b
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`?
Download (untitled) / with headers
text/plain 617b
commit 1a029d1b9640cf9e637fb520b4973e54e583a518 Author: Gisle Aas <> Date: Thu Jul 24 00:21:05 2008 +0200 File::Listing only support English locales [RT#28879] diff --git a/lib/File/ b/lib/File/ index 7df9cae..a8b11ef 100644 --- a/lib/File/ +++ b/lib/File/ @@ -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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to