#193 open(file,"m") does NOT fail when file cannot be opened

None
pending
None
7
2017-01-12
2014-07-04
No

The behavior for internet files should be changed to match the behavior for local files.

Discussion

  • Jafar

    Jafar - 2016-08-28

    As of August, 28 2016 the behavior seems to be consistent with local files, i.e, open() fails if the url cann't be open. However a runtime error takes place if the url is "malformed. For example, trying open("unicon.org") causes this:

    Run-time error 1201
    File ret.icn; Line 3
    malformed URL
    offending value: "unicon.org"
    Traceback:
    main(list_1 = ["unicon.org"])
    open("unicon.org","m") from line 3 in ret.icn

    Should we make that a failure?
    Should unicon default to prefix the url with "http://" if it doesn't have one already?

    --Jafar

     
  • Clinton Jeffery

    Clinton Jeffery - 2017-01-12
    • status: open --> pending
    • assigned_to: Clinton Jeffery
    • Group: -->
    • Priority: 5 --> 7
     
  • Clinton Jeffery

    Clinton Jeffery - 2017-01-12

    http:// or https:// ? Or try the latter first and then the former?

     

Log in to post a comment.