io: fix decoding in get-output-bytes

This commit is contained in:
Matthew Flatt 2019-01-19 09:02:53 -07:00
parent 09b3b2fb3c
commit 74b34c210d

View File

@ -19,4 +19,4 @@
(check who (lambda (v) (and (output-port? o) (string-port? o)))
#:contract "(and/c output-port? string-port?)"
o)
(bytes->string/utf-8 (get-output-bytes o) #\?))
(bytes->string/utf-8 (get-output-bytes o) #\uFFFD))