Skip Menu |

This queue is for tickets about the album CPAN distribution.

Report information
The Basics
Id: 22163
Status: resolved
Priority: 0/
Queue: album

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

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 1.04



Subject: Filenames with spaces
(This report is for version 1.03, but this value was not available in RT's version selector) When album is called on a directory with filenames containing spaces (yes, I know, but that's what you get from Windows-centric people) and an empty "info.dat" exists, then the filenames get unquoted and unescaped into the "info.dat" file. This means that in the next run album will croak about non-existing files. Probably album should quote/escape filenames with spaces, tabs and other whitespace when creating into the info.dat file. Regards, Slaven
From: JV [...] cpan.org
Fixed in 1.04. Thanks
Thank you. Though I am curious how you solved it without introducing new separators or escaping characters.
Subject: Re: [rt.cpan.org #22163] Filenames with spaces
Date: Fri, 20 Oct 2006 23:01:57 +0200
To: bug-album [...] rt.cpan.org
From: Johan Vromans <jvromans [...] squirrel.nl>
[Quoting Slaven_Rezic via RT, on October 20 2006, 15:15, in "[rt.cpan.org #22163]"] Show quoted text
> Thank you. Though I am curious how you solved it without introducing new > separators or escaping characters.
I look for known extensions. foo bar blech.jpg ... This will treat "foo bar bleck.jpg" as the file name. I tried to use Text::Parsewords, but that ran into an unfortunate complication: when the image description contains a single " or ', parsing fails. So a line fobar.jpg This can't happen would not parse anymore. I considered requiring quotes around the description to big a compatibility problem. The only drawback is that the extension must be known, i.e. a known image extenstion, movie extension or html. -- Johan