emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62690: closed (Guile 3.0.9 (read-u8) defaults to current-output-port


From: GNU bug Tracking System
Subject: bug#62690: closed (Guile 3.0.9 (read-u8) defaults to current-output-port)
Date: Sun, 16 Jul 2023 20:32:02 +0000

Your message dated Sun, 16 Jul 2023 22:31:32 +0200
with message-id <87jzuzr42j.fsf@gnu.org>
and subject line Re: bug#62690: Guile 3.0.9 (read-u8) defaults to 
current-output-port
has caused the debbugs.gnu.org bug report #62690,
regarding Guile 3.0.9 (read-u8) defaults to current-output-port
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62690: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62690
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Guile 3.0.9 (read-u8) defaults to current-output-port Date: Wed, 5 Apr 2023 20:38:28 +0000
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


--- End Message ---
--- Begin Message --- Subject: Re: bug#62690: Guile 3.0.9 (read-u8) defaults to current-output-port Date: Sun, 16 Jul 2023 22:31:32 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi,

Rui Zhang <zrui16@hotmail.com> skribis:

> 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?

Oops, fixed, thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]