octave-maintainers
[Top][All Lists]
Advanced

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

Re: Octave 3.8.1-rc4 release candidate available for ftp


From: Daniel J Sebald
Subject: Re: Octave 3.8.1-rc4 release candidate available for ftp
Date: Thu, 27 Feb 2014 22:25:04 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

Rik,

This is something we worked on a while back...

On 02/27/2014 03:25 PM, John D wrote:

   ***** test
  ## No separator, 1 column of data only
  A = [3.1;-7.2;0;0.012;6.5;128];
  fn  = tmpnam ();
  fid = fopen (fn, "w");
  fprintf (fid, "%f\n", A);
  fclose (fid);
  [a1,d1,h1] = importdata (fn, "");
  [a2,d2,h2] = importdata (fn);
  unlink (fn);
  assert (a1, A);
  assert (d1, "");
  assert (h1, 0);
  assert (a2, A);
  assert (d2, "");
  assert (h2, 0);
!!!!! test failed
regexp: invalid range in character class at position 4 of expression

--

If I change importdata.m importdata_ascii line 182
From: delim = regexp (row, '[+-\d.eE\*ij ]+([^+-\d.ij])[+-\d.ij]',
           'tokens', 'once');
To: delim = regexp (row, '[\+\-\d.eE\*ij ]+([^\+\-\d.ij])[\+\-\d.ij]',
           'tokens', 'once');

It then passes

Good catch. I wonder why there is an issue here on just OSX. Is it because + and - are not considered ASCII? Different library version, perhaps?

Dan


reply via email to

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