Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Reading tcp ports in rebol line by line

From: al:bri:xtra at: 10-Nov-2000 17:44

Holger wrote:
> Regarding the newline character: in current versions there is the problem
that in some circumstances after reading an incoming line that is terminated by crlf only the cr is read from the input buffer (a side effect of REBOL's automatic crlf conversion), not the nl, i.e. after the first line 'wait will return immediately (because of the nl), but 'copy still blocks, because no full new line is available.
> The current workaround is to explicitly tell REBOL what line terminator
you want to use, by using the /with refinement, e.g. /wait "^/". The bug will be fixed in one of the next experimentals. Thanks for the better explanation, Holger! Andrew Martin ICQ: 26227169