APPEND file-port crash #1894
Labels
Datatype: port!
Oldes.resolved
Bugs/wishes with Oldes' fixes/features
Ren.important
Status.important
Test.written
Type.bug
Submitted by: Ladislav
The code below crashes the interpreter
Imported from: CureCode [ Version: alpha 111 Type: Bug Platform: All Category: Ports Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#1894
Comments:
Submitted by: BrianH
File ports don't support the APPEND action - you're supposed to use WRITE/append instead, like this:
Still, it shouldn't crash. The relevant code may be in the host source, and if so we can fix it ourselves.
Submitted by: Ladislav
in the core-tests suite
Submitted by: abolka
Currently, APPEND on a file port! is just a shortcut for WRITE/append. Should we keep that behaviour, or disallow APPEND on file port!s altogether, for now?
Submitted by: abolka
Fix for the crash submitted:
rebol/rebol#212
Note that this fix tightens the effective type spec for APPEND on file ports. Disallowing APPEND on file ports altogether should still be discussed. We could also discuss relaxing APPEND on file ports so that it automatically converts to binary for non-binary values.
The text was updated successfully, but these errors were encountered: