From: "Göran Weinholt" <goran@weinholt.se>
To: 41045@debbugs.gnu.org
Subject: bug#41045: transcoded-port turns input/output ports into output ports
Date: Sun, 03 May 2020 11:07:59 +0200 [thread overview]
Message-ID: <875zddcro0.fsf@teapot.weinholt.se> (raw)
Hello schemers,
The transcoded-port procedure from (rnrs) does not handle input/output
ports properly:
--8<---------------cut here---------------start------------->8---
GNU Guile 3.0.2
Copyright (C) 1995-2020 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (define p (open-file-input/output-port "/dev/null" (file-options no-fail)))
scheme@(guile-user)> (define tp (transcoded-port p (native-transcoder)))
scheme@(guile-user)> (values (output-port? tp) (input-port? tp))
$1 = #t
$2 = #f
--8<---------------cut here---------------end--------------->8---
Both return values should be #t.
--
Göran Weinholt | https://weinholt.se/
Debian developer | 73 de SA6CJK
reply other threads:[~2020-05-03 9:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=875zddcro0.fsf@teapot.weinholt.se \
--to=goran@weinholt.se \
--cc=41045@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).