<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Yes, of course!<br>
<br>
Execute this snippet in a workspace:<br>
<br>
<tt>problematicName :=
'5922-FixedClassMethodPushDown-TomásSpognardi-2023Jul09-20h38m-TS.001.cs.st'.<br>
fileEntry := DirectoryEntry smalltalkImageDirectory parent /<br>
'Cuis-Smalltalk-Dev' / 'CoreUpdates' // problematicName.<br>
.<br>
<br>
(z1 := ZipArchive new) zipFileComment: 'ZIP test'.<br>
z1<br>
addFile: fileEntry pathName as: problematicName;<br>
writeToFileNamed: 'test.zip';<br>
close. <br>
<br>
</tt><br>
unzip <tt>test.zip</tt> like this:<br>
<br>
<tt>bear@speedy ~/s/c/Environments> unzip test.zip</tt><tt><br>
</tt><tt>Archive: test.zip</tt><tt><br>
</tt><tt>ZIP test</tt><tt><br>
</tt><tt>warning [test.zip]: 1 extra byte at beginning or within
zipfile</tt><tt><br>
</tt><tt> (attempting to process anyway)</tt><tt><br>
</tt><tt>error [test.zip]: reported length of central directory is</tt><tt><br>
</tt><tt> -1 bytes too long (Atari STZip zipfile? J.H.Holm
ZIPSPLIT 1.1</tt><tt><br>
</tt><tt> zipfile?). Compensating...</tt><tt><br>
</tt><tt> inflating:
5922-FixedClassMethodPushDown-TomásSpognardi-2023Jul09-20h38m-TS.001.cs.s
</tt><tt><br>
</tt><tt> error: invalid compressed data to inflate</tt><tt><br>
</tt><tt><br>
</tt><tt>note: didn't find end-of-central-dir signature at end of
central dir.</tt><tt><br>
</tt><tt> (please check that you have transferred or created the
zipfile in the</tt><tt><br>
</tt><tt> appropriate BINARY mode and that you have compiled UnZip
properly)</tt><tt><br>
</tt><br>
<br>
See below ...<br>
<br>
<br>
HTH,<br>
<br>
Gerald<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/23/23 8:09 PM, Juan Vuletich via
Cuis-dev wrote:<br>
</div>
<blockquote type="cite" cite="mid:655FA376.5050706@cuis.st">Hi
Gerald,
<br>
<br>
On 11/23/2023 3:29 PM, Gerald Klix via Cuis-dev wrote:
<br>
<blockquote type="cite">Hi Juan,
<br>
<br>
I was bit hasty, zipping
5922-FixedClassMethodPushDown-TomásSpognardi-2023Jul09-20h38m-TS.001.cs.st<br>
still does not work. I renamed this file and forgot to undo that
change.
<br>
</blockquote>
<br>
Strange.
<br>
<br>
I switched to Linux (Ubuntu). Pulled repo. Started a fresh Cuis.
Did `Feature require: 'Compression'.`. Then:
<br>
`
<br>
ZipArchive new
<br>
zipFileComment: 'ZIP file test';
<br>
addFile:
'Cuis-Smalltalk-Dev/CoreUpdates/5922-FixedClassMethodPushDown-TomásSpognardi-2023Jul09-20h38m-TS.001.cs.st'
as: 'testOutx.bin';
<br>
</blockquote>
I suppose the <b>filename in the archive</b> is the culprit.<br>
<blockquote type="cite" cite="mid:655FA376.5050706@cuis.st">
writeToFileNamed: 'testbinx.zip'.
<br>
`
<br>
<br>
I got a zip file that Linux can unzip without trouble.
<br>
<br>
Can you please repeat _exactly_ those steps? If that works, give
me enough detail so I can reproduce it on my machine. Please
include any error messages you get along the way.
<br>
<br>
<blockquote type="cite">Best regards,
<br>
<br>
Gerald
<br>
<br>
</blockquote>
<br>
BTW, the Georgian example is just "Lorem Ipsum Dolor" :)
<br>
<br>
Cheers,
<br>
<br>
</blockquote>
<br>
</body>
</html>