Skip Menu |

This queue is for tickets about the Archive-Zip CPAN distribution.

Report information
The Basics
Id: 15026
Status: open
Priority: 0/
Queue: Archive-Zip

People
Owner: Nobody in particular
Requestors: q3998141 [...] bonsai.fernuni-hagen.de
Cc:
AdminCc:

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



Subject: AddTree does not include files with german umlauts in the filename
Windows 2000 Server Active State perl 5.8.4 Archive::Zip 1.16 AddTree misses files with german umlauts in the filename.
[guest - Wed Oct 12 04:40:58 2005]: Show quoted text
> Windows 2000 Server > Active State perl 5.8.4 > Archive::Zip 1.16 > > AddTree misses files with german umlauts in the filename.
Tried to track down the error. Seems to be relatet to some other modules (Tk, Win32::File) use in my prog. A small prog, only used for creating the archive does work....
On Wed Oct 12 09:48:21 2005, guest wrote: Show quoted text
> [guest - Wed Oct 12 04:40:58 2005]: >
> > Windows 2000 Server > > Active State perl 5.8.4 > > Archive::Zip 1.16 > > > > AddTree misses files with german umlauts in the filename.
> > > Tried to track down the error. > Seems to be relatet to some other modules (Tk, Win32::File) use in
my Show quoted text
> prog. > A small prog, only used for creating the archive does work....
I'll verify tonight (with Spanish umlauts instead :) ) to see if this causes a failure or not.
On Mon Jan 23 10:06:27 2006, SMPETERS wrote: Show quoted text
> On Wed Oct 12 09:48:21 2005, guest wrote:
> > [guest - Wed Oct 12 04:40:58 2005]: > >
> > > Windows 2000 Server > > > Active State perl 5.8.4 > > > Archive::Zip 1.16 > > > > > > AddTree misses files with german umlauts in the filename.
> > > > > > Tried to track down the error. > > Seems to be relatet to some other modules (Tk, Win32::File) use in
> my
> > prog. > > A small prog, only used for creating the archive does work....
> > I'll verify tonight (with Spanish umlauts instead :) ) to see if this > causes a failure or not.
Did you make sure that the filename string was not utf8-ified? Probably it helps if you explicitely convert to iso-8859-1, for example by using Encode.pm
Trying to clean up some RT tickets here. Is this still an issue? Does the latest revision fix the problem?
Hi, I am having the same kind of problem with french accented characters. The issue appears in addTree() second argument. When you specify a different root directory for the archive The names of files in the directory tree are also affected. Archive::Zip version 1.30 Perl version 5.12.4 OS windows 7 64bits, NTFS Ex: (encoding in perl file is cp1252) ------------------------------------------------------ use strict; use warnings; use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); my $zip = Archive::Zip->new(); my $zipRoot = "accentué"; # = accented my $zipFilename = "résultat.zip"; # = result.zip my $dir = "répertoire"; # = directory my $status = $zip->addTree($dir, $zipRoot); $status = $zip->writeToFileNamed($zipFilename); ---------------------------------------------------- Initial directory tree: . |- répertoire |- fichier_é.txt Result zip file name contains correct accent (from writeToFileNamed()). Content of zip file: accentuÚ |- fichier_Ú.txt addTree() badly manages its 2nd arguments, but also the directory tree. There is a workaround for the arguments: $zipRoot = encode("cp850", $zipRoot) but it does not solves the processing of the file names in the directory tree (like fichier_é.txt). (I hope you can read accented chars on your computer !!)