octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47578] zip/gzip/bzip2 fail when run from insi


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #47578] zip/gzip/bzip2 fail when run from inside a path with spaces in name
Date: Thu, 31 Mar 2016 11:49:36 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #47578 (project octave):

              Item Group:              Regression => Incorrect Result       
                 Summary: zip/gzip/bzip2 fail when writing to path with spaces
in name => zip/gzip/bzip2 fail when run from inside a path with spaces in name

    _______________________________________________________

Follow-up Comment #2:

<title adapted after more investigation>

Turns out this also failed in 3.8.2. So this bug is really old.

(The examples were cooked a bit. But I am sure of the bug/regression as I hit
it when trying the spreadsheet test scripts on a drive with spaces in the
name.
Rather than impose installing io I figured I'd make up a simple example. But
with the io package it is easier for me to show what fails)

If you have the OF io package installed you can do:

more off
pkg load io
io_ods_testscript ("oct")  ## .ods file, invokes zip
- or -
io_ods_testscript ("oct", "test.gnumeric")  ## invokes gzip

Run these commands from *inside a subdir* with, and a subdir without spaces in
the name.

That example gives for a subdir w/o spaces in name (empty lines removed)  
(NOTE: all with octave-4.0.1 but 4.1.0+ behaves identical):

>> pwd
ans = D:\tmp\dir_wo_spaces_in_name
>> io_ods_testscript ("oct", "test.gnumeric")
Testing .ods interface OCT using file test.gnumeric...
 1. Initialize arrays.
 2. Insert first empty sheet.
 3. Add data to test sheet.
 4. Add another sheet with just one number in A1.
 5. Explore sheet info.
 6. Read data back.
 7. Tests part 1 (basic I/O):
    ...Numeric array... matches.
    ...Cellstr array... matches.
    ...Boolean... recovered.
 8. Repeat reading, now return formulas as text
 9. Tests part 2 (read back as formula):
    (Note: just a check for a string rather than a numerical value)
    ...OK, formula recovered ('=c2+sin(d3)').
10. Cleaning up..... OK
## output skipped


and for a subdir with spaces:

>> pwd
ans = D:\tmp\dir with space in name
>> io_ods_testscript ("oct", "test.gnumeric")

Testing .ods interface OCT using file test.gnumeric...

 1. Initialize arrays.

 2. Insert first empty sheet.
gzip: with: No such file or directory
gzip: space: No such file or directory
gzip: in: No such file or directory
gzip: name\test.gnumeric: No such file or directory
odsclose: could not gzip gnumeric contents in
C:\Users\Nienhu01\AppData\Local\Temp
\oct-3BqGgI to D:\tmp\dir with space in name\test.gnumeric

 3. Add data to test sheet.
gzip: with: No such file or directory
gzip: space: No such file or directory
gzip: in: No such file or directory
gzip: name\test.gnumeric: No such file or directory
odsclose: could not gzip gnumeric contents in
C:\Users\Nienhu01\AppData\Local\Temp
\oct-8CBW6X to D:\tmp\dir with space in name\test.gnumeric
gzip: with: No such file or directory
gzip: space: No such file or directory
gzip: in: No such file or directory
gzip: name\test.gnumeric: No such file or directory
odsclose: could not gzip gnumeric contents in
C:\Users\Nienhu01\AppData\Local\Temp
\oct-eQQoWv to D:\tmp\dir with space in name\test.gnumeric

 4. Add another sheet with just one number in A1.
gzip: with: No such file or directory
gzip: space: No such file or directory
gzip: in: No such file or directory
gzip: name\test.gnumeric: No such file or directory
odsclose: could not gzip gnumeric contents in
C:\Users\Nienhu01\AppData\Local\Temp
\oct-CoQ7Lu to D:\tmp\dir with space in name\test.gnumeric

 5. Explore sheet info.
error: odsopen.m: file test.gnumeric not found


Running a level higher up (in d:\tmp):

>> pwd
ans = D:\tmp
>> io_ods_testscript ("oct", "dir with space in name/test.gnumeric")

Testing .ods interface OCT using file dir with space in name/test.gnumeric...

 1. Initialize arrays.

 2. Insert first empty sheet.
gzip: with: No such file or directory
gzip: space: No such file or directory
gzip: in: No such file or directory
gzip: name/test.gnumeric: No such file or directory
odsclose: could not gzip gnumeric contents in
C:\Users\Nienhu01\AppData\Local\Temp
\oct-WrP2uN to D:\tmp\dir with space in name/test.gnumeric
:


..but...

>> io_ods_testscript ("oct", "dir_wo_spaces_in_name/test.gnumeric")

Testing .ods interface OCT using file dir_wo_spaces_in_name/test.gnumeric...

 1. Initialize arrays.

 2. Insert first empty sheet.
:


runs fine.

I just tried with 3.8.2, 4.0.1 and a 4.1.0+ from Mar 29 and all show the same
bug.

Is it a concealed manifestation of the "do not install Octave in a path with
spaces" issue? That would be a very creepy gotcha.

Or is it that gzip / zip / bzip2 just get handed a path to the zip file that
is in a format they don't expect? (or w/o double quotes)

(regression -> incorrect result)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47578>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]