bugMIT/GNU Scheme - Bugs: bug #62623, Unable to write bytes in REPL

 
 

bug #62623: Unable to write bytes in REPL

Submitter:  None
Submitted:  Tue 14 Jun 2022 03:59:54 AM UTC
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Originator Email:  -email is unavailable- Open/Closed:  Open
Keywords: 
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Tue 14 Jun 2022 03:59:54 AM UTC, original submission:  

Evaluating (write-u8 65) at the REPL will produce this error:

;The object #[textual-i/o-port 12 for console], passed as an argument to #[compiled-procedure 13 ("binary-port" #x3) #x1c #x23a9984], is not the correct type.

This is because the REPL's output port is not a binary port:

(binary-port? (current-output-port))   ; returns #f
(textual-port? (current-output-port))  ; returns #t

Would it be possible to make the REPL's output port both a textual port and a binary port, so that bytes can be written at the REPL?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.9