[REBOL] Re: read ftp:// error
From: gjones05:mail:orion at: 29-May-2001 10:28
From: "Thorsten Moeller"
...
> here is an the Code incl. error-message:
>
> >> print read ftp://user:[pass--192--168--200--10]/home/whc/tsbewout
> ** Script Error: Invalid argument: 29/Mai/2001/4:04
> ** Where: to-date
> ** Near: to date! :value
>
> Perhaps i should send this to RT feedback.
Hello, again, Thorsten,
The reason that I originally asked about a typo was because of the
context of the question. (I assumed that "Mai" was a German word:-)
However, from the initial post I was unable to tell whether the word was
being read because of specific code segment that you had written, versus
something internal to another function. Your example above clarifies
the context.
I assume that the tsbewout refers to a file (otherwise REBOL ftp would
require a
terminating slash).
The question in my mind was also why would this error be thrown in this
circumstances? Normally a 'read under these circumstances would return
a string. While 'print contains an implied 'reduce, REBOL would not
need to reduce anything from a read request of a file, so, as you
originally figured, this statement should print the file following the
read without complaint.
When I browsed the ftp scheme, I can see where the scheme makes string
to date coversions, but I have been unable to figure out how this gets
called with the simple command string you've listed above.
Perhaps this is a REBOL bug. Wouldn't hurt to submit it to REBOL
feedback as a possible one.
Quite a mystery, at least for me.
--Scott Jones