help-octave
[Top][All Lists]
Advanced

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

Re: octave 2.9.9 under cygwin does not find scriptfiles on network path


From: Benjamin Lindner
Subject: Re: octave 2.9.9 under cygwin does not find scriptfiles on network path
Date: Wed, 08 Nov 2006 11:16:53 +0100

> OK, apparently this is a w2k-specific cygwin issue.
> rewinddir() in dirent.h is not behaving as expected due to a bug in w2k
> api, yielding wrong results on successive readdir() calls.
> Thus a call to octave's dir_entry class' read() method (or equivalently 
> the octave built-in function readdir() ) will return only the two entries 
> "." and ".." on a network drive, therefore no scripts are found.
> 
> I posted this as a bug to the cygwin mailing list, and a fix has been
> provided in cygwin cvs (http://cygwin.com/ml/cygwin/2006-10/msg00764.html)
> 
> As soon as there is a cygwin developer snapshot including this fix I will
> test it and report back.

For the record, 
The problem is solved in the 20061023 snapshot of the cygwin dll.

octave-2.9.9:1:~ > ls -l -a /cygdrive/u/foo
total 5
drwxr-xr-x 1 lindnebe DUsers 0 Nov  8 10:30 .
drwxr-xr-x 1 lindnebe DUsers 0 Jan  1  1970 ..
-rw-r--r-- 1 lindnebe DUsers 0 Nov  8 10:31 bar
-rw-r--r-- 1 lindnebe DUsers 0 Nov  8 10:31 baz
-rw-r--r-- 1 lindnebe DUsers 0 Nov  8 10:31 quuuux
-rw-r--r-- 1 lindnebe DUsers 0 Nov  8 10:31 quuux
-rw-r--r-- 1 lindnebe DUsers 0 Nov  8 10:31 quux
octave-2.9.9:2:~ > readdir('/cygdrive/u/foo')
ans =
{
  [1,1] = .
  [2,1] = ..
  [3,1] = bar
  [4,1] = baz
  [5,1] = quuuux
  [6,1] = quuux
  [7,1] = quux
}

Conclusio:
If you want to use octave 2.9.x on a w2k machine under cygwin, 
and you want to access files on a remote share,
then you must have a cygwin dll at least from 20061023 snapshot or later.
(I guess this fix will be included in the next release of the cygwin dll,
so you will need a cygwin dll version later than 1.5.21-1)

benjamin
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


reply via email to

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