#567 openr and filenames with spaces

v1.0 (example)
closed-works-for-me
nobody
None
5
2013-09-23
2013-09-10
Martin Svec
No

I think openr has some problems with handling paths that contain spaces, first:

1) spaces need to be escaped by '\' in order to work, IDL does not need that

2) it is possible to trick GDL with an empty file to think it opened a file unit:

a) create an empty file "$HOME/bla"
b) create a folder in your home dir, e.g. mkdir "$HOME/bla bla"
c) try to use openr on some nonexistent file in the "bla bla" dir:
GDL>f='/home/yourname/bla bla/asdf/asdf.txt'
GDL>openr,1,f

GDL gives you no error, but of course it crashes when you try to read from unit #1

IDL would correctly determine the file is nonexistent and give an error

My version is
0.9.3 CVS
1370556000

Discussion

  • Alain C.

    Alain C. - 2013-09-17

    Could you try again on a more recent version compiled from the CVS,
    my student Nodar worked on that in the beginning of July and
    it seems what you described is partially solved.

    Yes, the last point is still present, when the file does not exists

    Alain

     
  • Alain C.

    Alain C. - 2013-09-23

    I consider this bug is no more present in the CVS.

    Please re-open bug report if related problems

    Alain

     
  • Alain C.

    Alain C. - 2013-09-23
    • status: open --> closed-works-for-me
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks