Skip to content

Commit

Permalink
fix writing to binary port
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 15, 2024
1 parent 8b9ee19 commit d32ef05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/std.min.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion dist/std.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/std.xcb
Binary file not shown.
4 changes: 3 additions & 1 deletion lib/R5RS.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,9 @@
Write object to standard output or give port. For strings it will include
wrap in quotes."
(let ((port (if (null? rest) (current-output-port) (car rest))))
(display (repr obj true) port)))
(if (binary-port? port)
(display obj port)
(display (repr obj true) port))))

;; -----------------------------------------------------------------------------
(define (write-char char . rest)
Expand Down

0 comments on commit d32ef05

Please sign in to comment.