Add a New Comment (Rich Markup)
( Jump to the original submission )
Hi John, I confirm that windows effectively adds '\r'. I'm an experienced Matlab user, but relatively new to Octave. Please let me know if I can provide any help. Regards, Mathieu
So running some more tests and the list function is adding (or leaving '\r') in windows, but not in linux. Linux:
octave:1> f = ftp('ftp.gnu.org') f = FTP object host: ftp.gnu.org user: anonymous dir: / mode: binary octave:2> x = dir(f) x = 19x1 struct array containing the fields: name date bytes isdir datenum octave:3> uint8(x(1).name) ans = 67 82 89 80 84 79 46 82 69 65 68 77 69
In windows:
octave:3> uint8(x(1).name) ans = 67 82 89 80 84 79 46 82 69 65 68 77 69 13
Im guessing pattern.match in libinterp/corefcn/__ftp__.cc is failing to match names currectly in windows, but have not looked further to verify
help _ftp_mget_ works _ftp_mget_(f,'') # expected to fail - shows same cant find message
I tried in 7.3 and in 8.1 and see the same error in windows dir(f) etc appears to work ok
Thank you for your comments. Octave was downloaded from https://octave.org/download.html The application was started in gui mode. Should I try to install an earlier release? Regards, Mat
assuming windows, how was octave installed, and how was the octave application started?
Works for me with 7.3 on Linux. This might be a Windows-specific problem.
mget function cannot find the remote file. dir and mput functions work properly. This simple example doesn't work :
>> f = ftp ("ftp.gnu.org")
f = FTP object host: ftp.gnu.org user: anonymous dir: / mode: binary
>> mget(f,"welcome.msg")
error: _ftp_mget_: file not found error: called from mget at line 44 column 3
>>
(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
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 2 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11