Open rebolbot opened 14 years ago
Submitted by: meijeru
The error occurs in this line from SOURCE: print head insert mold get word reduce [word ": "] So if we do:
>> word: 'replace
>> print head insert mold get word reduce [word ": "]
the error occurs.
But I found out by accident (by making a typing mistake) that if we do
>> print head insert mold get word reduce [word ":"] ; leave out the space after ":"
the error is gone!
Submitted by: meijeru
Furthermore, if the reduced block does not contain the exact word REPLACE but any other word, the error does not occur. It looks like the REPLACE function is invoked somehow ?!?
Submitted by: BrianH
Naw, the REPLACE function isn't being invoked, it's something else. The newline at the particular line (index 999) is being printed out like a CR instead of a CRLF. I would be surprised if this problem wasn't Windows-specific. Given the closeness of that index to 1000, it might be a buffer issue in PRINT.
Submitted by: meijeru
I have tried to provoke that Windows-specific error by printing out a string with a newline at index 999, but wasn't successful.
Submitted by: BrianH
Same here. It's something about that specific string, though the characters after the index of the printing error don't affect it.
Submitted by: Carl
BrianH: "Bug of the week." The bug is in console printing. It's related to UTF-8 encoding at a buffer split precisely on CR insertion at an LF. Classic. Fixed it.
Submitted by: BrianH
There's no apparent bug in the source of SOURCE, but there seems to be an obscure output bug that (so far) only affects the source of the REPLACE function. See the code, and note the difference in the line with the do-break.
CC - Data [ Version: alpha 97 Type: Bug Platform: All Category: Native Reproduce: Always Fixed-in:alpha 98 ]