<html>
    <head>
      <base href="https://issues.openmandriva.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - unpack fails in Octave"
   href="https://issues.openmandriva.org/show_bug.cgi?id=2051">2051</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>unpack fails in Octave
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Openmandriva Lx 3.0
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Lx 3.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Software
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>cris@beebgames.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mandian@openmailbox.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>tpgxyz@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>itchka@compuserve.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>unpack command in Octave return a strange result where 'x ' string is added at
each file name in output file list

Here is an example:

$ wget <a href="https://downloads.sourceforge.net/io-2.4.5.tar.gz">https://downloads.sourceforge.net/io-2.4.5.tar.gz</a>
$ octave --eval 'list = unpack("io-2.4.5.tar.gz", ".")'
list = 
{
  [1,1] = x io/
  [2,1] = x io/COPYING
  [3,1] = x io/DESCRIPTION
  .
  .
  .
  [144,1] = x io/src/csvconcat.cc
  [145,1] = x io/src/csvexplode.cc
  [146,1] = x io/src/Makefile
  [147,1] = x io/src/num2col.cc
}

The failing script is /usr/share/octave/4.2.0/m/miscellaneous/unpack.m

I can see this in lx3.0 and cooker while 2014.x seems working well instead,
even if all them actually share the same version of octave. Also the script
unpakc.m is the exactly same in 2014 and cooker.

In fact unpack function just used following command

  gzip -d -c "%s" | tar xvf -

so I think it problem is tar add the 'x ' string at the beginning of each line.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>