<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
That extra field seems unnecessary. Appendix D says that it is
enough with setting "general purpose flag 11" and filling fileName
and fileComment with UTF8 bytes. So that's what I did.<br>
<br>
It seems to work well. Please test.<br>
<br>
Thanks,<br>
<br>
On 11/23/2023 4:52 PM, Gerald Klix via Cuis-dev wrote:
<blockquote cite="mid:5ad0022b-fe85-4647-f892-6493115f4f1b@klix.ch"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
I think the ZIP file guys are well aware of that problem.<br>
<br>
In <tt><a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT">https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT</a></tt><br>
search for <tt>4.6.9 -Info-ZIP Unicode Path Extra Field (0x7075)</tt>.<br>
<br>
I don't know how much effort it is to add this extra field.<br>
<br>
<br>
HTH and Best Regards,<br>
<br>
Gerald<br>
<br>
<br>
<div class="moz-cite-prefix"><br>
On 11/23/23 8:43 PM, Gerald Klix via Cuis-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:85d11dae-ffb5-97be-1074-580b71a0d539@klix.ch">Yes, of
course! <br>
<br>
Execute this snippet in a workspace: <br>
<br>
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>
<br>
unzip test.zip like this: <br>
<br>
bear@speedy ~/s/c/Environments> unzip test.zip <br>
Archive: test.zip <br>
ZIP test <br>
warning [test.zip]: 1 extra byte at beginning or within zipfile
<br>
(attempting to process anyway) <br>
error [test.zip]: reported length of central directory is <br>
-1 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1
<br>
zipfile?). Compensating... <br>
inflating:
5922-FixedClassMethodPushDown-TomásSpognardi-2023Jul09-20h38m-TS.001.cs.s<br>
error: invalid compressed data to inflate <br>
<br>
note: didn't find end-of-central-dir signature at end of
central dir. <br>
(please check that you have transferred or created the zipfile
in the <br>
appropriate BINARY mode and that you have compiled UnZip
properly) <br>
<br>
<br>
See below ... <br>
<br>
<br>
HTH, <br>
<br>
Gerald <br>
<br>
<br>
<br>
On 11/23/23 8:09 PM, Juan Vuletich via Cuis-dev wrote: <br>
<blockquote type="cite">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 *filename in the archive* is the culprit. <br>
<blockquote type="cite">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>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>