#7 ::vfs::mk4::open mode a+ unhandled

closed-fixed
5
2003-01-06
2002-11-05
No

System:
* Tclkit 8.4.1-38
* WIndows XP German
* package pesent vfs -> 1.0, mk4vfs -> 1.4

If I open a serial channel in a complex context(*) with
open "com1:" RDWR
the following error occours:
"Illegal access mode a+"

If I look to the errorInfo, the error is due to a missing handle
for this mode in the function
::vfs::mk4::open

(*) if I try it on the command line it works but inside the program
it gives the error in the same interpreter.

(**) I don't understand any mechansim behind this. If you need
any additional information please email me.

Discussion

  • Vince Darley

    Vince Darley - 2002-11-06
    • assigned_to: nobody --> jcw
     
  • Vince Darley

    Vince Darley - 2002-11-06

    Logged In: YES
    user_id=32170

    The problem here seems more complex, 'com1:' should never be
    sent to vfs::mk4::open (that that function doesn't handle
    'a+' is almost certainly a bug as well, but not really the
    bug you are seeing).

    'com1:' should be treated by Tcl's filesystem as an absolute
    path to be handled by the native filesystem

    However, 'file pathtype com1:' returns "relative" which I
    believe is wrong. This would be a bug in Tcl's core, not
    tclkit/tclvfs.

    any thoughts?

     
  • Vince Darley

    Vince Darley - 2002-11-06

    Logged In: YES
    user_id=32170

    Forgot to add, there is a workaround:

    set dir [pwd] ; cd C:/ ; set result [open "com1:" RDWR] ; cd
    $dir
    set result

    ought to do what you want...

     
  • Vince Darley

    Vince Darley - 2003-01-06
    • status: open --> closed-fixed
     
  • Vince Darley

    Vince Darley - 2003-01-06

    Logged In: YES
    user_id=32170

    A fix for this bug was committed to Tcl some time ago (in
    Tcl 8.4.1.1 at least). It is not a vfs bug as such.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks