bugGNU Octave - Bugs: bug #54657, unpack fails with explicit archive...

 
 

bug #54657: unpack fails with explicit archive type

Submitted by:  Muhali <muhali>
Submitted on:  Thu 13 Sep 2018 04:15:50 PM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  4.4.1 Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 14 Sep 2018 08:16:51 AM UTC, comment #3:

I get the same error message as you, and a file "outz.zip".

Muhali <muhali>
Thu 13 Sep 2018 07:13:03 PM UTC, comment #2:

But there is something totally wrong with the filetype processing. The documentation says the filetype should be 'gz' for gzip format, but in fact the script requires 'gunzip'.

Rik <rik5>
Project Administrator
Thu 13 Sep 2018 06:31:01 PM UTC, comment #1:

Can you report the error you get as well? When I try your code in octave-4.4.1 I get this:

The error is not really with unpack. The zip() function automatically adds the extension ".zip" to a bare text filename. When zfile is "outz" the result is "outz.zip" which then unpack can't find.

Rik <rik5>
Project Administrator
Thu 13 Sep 2018 04:15:50 PM UTC, original submission:

For the unpack function, the archive type can be explicitly specified in an argument. I assume that applies to cases where that type is not given by the file extension. But in that case it doesn't work, as shown by the error of the following script:

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-13 rik5 StatusNone => Need Info

    Back to the top


    Powered by Savane 3.3