It is currently Tue Mar 09, 2021 9:58 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ExaminePack() don't find all files
PostPosted: Thu Dec 10, 2020 5:41 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 654
Try this code with the zip file:

https://www.dropbox.com/s/z4styarwva4xqfa/test.zip?dl=0
Code:
UseZipPacker()
ZIP = OpenPack(#PB_Any, "test.zip", #PB_PackerPlugin_Zip)
If ZIP
  If ExaminePack(ZIP)
    While NextPackEntry(ZIP)
      Debug PackEntryName(ZIP)
    Wend
  EndIf
  ClosePack(ZIP)
EndIf

I expect:
Quote:
META-INF/container.xml
Thumbnails/thumbnail.png
3_319_1_Du weißt den Weg.mscx

I get:
Quote:
META-INF/container.xml


Edit: I use Mac OS, wrong bug forum

// Moved from "Bugs - Windows" to "Bugs - Mac OSX" (By the way, Lebostein, you could have done that yourself.)


Top
 Profile  
Reply with quote  
 Post subject: Re: ExaminePack() don't find all files
PostPosted: Sat Dec 12, 2020 11:13 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 654
Seems like an unicode / string encoding bug. If you try this code with Windows the files are all found, but umlauts and "ß" are displayed incorrectly decoded in PureBasic.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExaminePack() don't find all files
PostPosted: Sat Dec 12, 2020 11:31 am 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 1337
On Windows, it works correctly if you remove the #PB_PackerPlugin_Zip flag. Try it with Mac?


Top
 Profile  
Reply with quote  
 Post subject: Re: ExaminePack() don't find all files
PostPosted: Sat Dec 12, 2020 11:34 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 654
BarryG wrote:
On Windows, it works correctly if you remove the #PB_PackerPlugin_Zip flag. Try it with Mac?

No. If I remove the #PB_PackerPlugin_Zip flag the output is the following:
Quote:
M

A single "M"....


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye