From: Rui Zhang <zrui16@hotmail.com>
To: 62690@debbugs.gnu.org
Subject: bug#62690: Guile 3.0.9 (read-u8) defaults to current-output-port
Date: Wed, 5 Apr 2023 20:38:28 +0000 [thread overview]
Message-ID: <KL1PR01MB4910A8507567EB241DDAC492DC909@KL1PR01MB4910.apcprd01.prod.exchangelabs.com> (raw)
Reproduction:
scheme@(guile-user)> (import (scheme base))
scheme@(guile-user)> (read-u8)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure get-u8: Wrong type argument in position 1 (expecting open input port): #<output: file /dev/pts/9>
Expected: (read-u8) should read a byte from the input port, not the output port.
In scheme/base.scm:
(define* (read-u8 #:optional (port (current-output-port)))
(get-u8 port))
I think this is a typo, where current-output-port should be current-input-port?
-Rui
next reply other threads:[~2023-04-05 20:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 20:38 Rui Zhang [this message]
2023-07-16 20:31 ` bug#62690: Guile 3.0.9 (read-u8) defaults to current-output-port Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=KL1PR01MB4910A8507567EB241DDAC492DC909@KL1PR01MB4910.apcprd01.prod.exchangelabs.com \
--to=zrui16@hotmail.com \
--cc=62690@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).