[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/06: r7rs: 'read-u8' now defaults to 'current-input-po
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 04/06: r7rs: 'read-u8' now defaults to 'current-input-port'. |
Date: |
Sun, 16 Jul 2023 16:39:42 -0400 (EDT) |
civodul pushed a commit to branch main
in repository guile.
commit d5659b7869764d2d9ca0c9911977c77320035cad
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Jul 16 22:29:19 2023 +0200
r7rs: 'read-u8' now defaults to 'current-input-port'.
Fixes <https://bugs.gnu.org/62690>.
Reported by Rui Zhang <zrui16@hotmail.com>.
* module/scheme/base.scm (read-u8): Change default value of 'port'.
---
NEWS | 2 ++
module/scheme/base.scm | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 239edca83..b319404d7 100644
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,8 @@ the compiler reports it as "possibly unused".
(<https://bugs.gnu.org/64666>)
** Avoid module resolution in 'call-with-new-thread', which could deadlock
(<https://bugs.gnu.org/62691>)
+** 'read-u8' in (scheme base) now defaults to (current-input-port)
+ (<https://bugs.gnu.org/62690>)
** Hashing of UTF-8 symbols with non-ASCII characters avoids corruption
(<https://bugs.gnu.org/56413>)
diff --git a/module/scheme/base.scm b/module/scheme/base.scm
index c6a73c092..b3d37a6ef 100644
--- a/module/scheme/base.scm
+++ b/module/scheme/base.scm
@@ -1,5 +1,5 @@
;;; R7RS compatibility libraries
-;;; Copyright (C) 2019-2021 Free Software Foundation, Inc.
+;;; Copyright (C) 2019-2021, 2023 Free Software Foundation, Inc.
;;;
;;; This library is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU Lesser General Public License as
@@ -368,7 +368,7 @@
(define* (peek-u8 #:optional (port (current-input-port)))
(lookahead-u8 port))
-(define* (read-u8 #:optional (port (current-output-port)))
+(define* (read-u8 #:optional (port (current-input-port)))
(get-u8 port))
(define* (read-bytevector len #:optional (port (current-input-port)))
- [Guile-commits] branch main updated (99e727add -> a0805cc27), Ludovic Courtès, 2023/07/16
- [Guile-commits] 02/06: Fix dangling pointers in `environ'., Ludovic Courtès, 2023/07/16
- [Guile-commits] 06/06: Revert "Mention package GNU Autopoint in README.", Ludovic Courtès, 2023/07/16
- [Guile-commits] 01/06: Fix typos throughout codebase., Ludovic Courtès, 2023/07/16
- [Guile-commits] 03/06: Avoid module resolution in 'call-with-new-thread'., Ludovic Courtès, 2023/07/16
- [Guile-commits] 04/06: r7rs: 'read-u8' now defaults to 'current-input-port'.,
Ludovic Courtès <=
- [Guile-commits] 05/06: doc: Use archived URL from Internet Archive for syntax-rules primer., Ludovic Courtès, 2023/07/16