bugGNU Octave - Bugs: bug #63851, mget function returns : file not...

 
 

bug #63851: mget function returns : file not found

Submitter:  None
Submitted:  Wed 01 Mar 2023 04:02:33 AM UTC
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Mathieu Nadeau Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 7.3.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

( Jump to the original submission )

Mon 20 Mar 2023 09:37:55 PM UTC, comment #8: 

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

Anonymous
Mon 13 Mar 2023 02:54:29 PM UTC, comment #7: 

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



John Donoghue <lostbard>
Project Member
Thu 09 Mar 2023 04:21:57 PM UTC, comment #6: 

Im guessing pattern.match in libinterp/corefcn/__ftp__.cc is failing to match names currectly in windows, but have not looked further to verify

John Donoghue <lostbard>
Project Member
Thu 09 Mar 2023 04:05:36 PM UTC, comment #5: 

help _ftp_mget_ works

_ftp_mget_(f,'') # expected to fail - shows same cant find message

John Donoghue <lostbard>
Project Member
Thu 09 Mar 2023 03:58:26 PM UTC, comment #4: 

I tried in 7.3 and in 8.1 and see the same error in windows

dir(f) etc appears to work ok

John Donoghue <lostbard>
Project Member
Wed 08 Mar 2023 01:03:58 AM UTC, comment #3: 

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

Anonymous
Tue 07 Mar 2023 07:12:37 PM UTC, comment #2: 

assuming windows, how was octave installed, and how was the octave application started?

John Donoghue <lostbard>
Project Member
Thu 02 Mar 2023 05:39:31 AM UTC, comment #1: 

Works for me with 7.3 on Linux.  This might be a Windows-specific problem.

Rik <rik5>
Project Administrator
Wed 01 Mar 2023 04:02:33 AM UTC, original submission:  

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

>>


Anonymous

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-02 rik5 Carbon-CopyRemoved 72865 -
    2023-03-02 rik5 Summarymget function returns : file note found mget function returns : file not found

    Back to the top

    Powered by Savane 3.11