GNU bug report logs - #58109
simple-format vs (ice-9 format) bug in 3.0.7?

Previous Next

Package: guile;

Reported by: Christopher Lam <christopher.lck <at> gmail.com>

Date: Tue, 27 Sep 2022 10:24:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#58109: closed (simple-format vs (ice-9 format) bug in 3.0.7?)
Date: Wed, 12 Oct 2022 20:51:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 12 Oct 2022 22:50:03 +0200
with message-id <87y1tku5qc.fsf <at> gnu.org>
and subject line Re: bug#58109: simple-format vs (ice-9 format) bug in 3.0.7?
has caused the debbugs.gnu.org bug report #58109,
regarding simple-format vs (ice-9 format) bug in 3.0.7?
to be marked as done.

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


-- 
58109: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58109
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Lam <christopher.lck <at> gmail.com>
To: bug-guile <at> gnu.org, guile-devel <guile-devel <at> gnu.org>
Subject: simple-format vs (ice-9 format) bug in 3.0.7?
Date: Tue, 27 Sep 2022 18:23:14 +0800
[Message part 3 (text/plain, inline)]
Hi guilers, here's a short bash session.
Why would the first bash call to "guile s.scm" work, but not the second one?
guile-3.0.7 on ubuntu.

============================
$ cat s.scm
(format #t "~f\n" 2.5)

$ guile s.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/chris/s.scm
;;; compiled
/home/chris/.cache/guile/ccache/3.0-LE-8-4.5/home/chris/s.scm.go
2.5

$ guile s.scm
Backtrace:
In ice-9/boot-9.scm:
  1752:10  6 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           5 (apply-smob/0 #<thunk 7efd190d5540>)
In ice-9/boot-9.scm:
    724:2  4 (call-with-prompt ("prompt") #<procedure 7efd190e5760 …> …)
In ice-9/eval.scm:
    619:8  3 (_ #(#(#<directory (guile-user) 7efd190d9c80>)))
In ice-9/boot-9.scm:
   2835:4  2 (save-module-excursion #<procedure 7efd190c9150 at ice-…>)
  4380:12  1 (_)
In unknown file:
           0 (simple-format #t "~f\n" 2.5)

ERROR: In procedure simple-format:
In procedure simple-format: FORMAT: Unsupported format option ~f - use
(ice-9 format) instead

$ guile --version
guile (GNU Guile) 3.0.7
Packaged by Debian (3.0.7-deb+3.0.7-1)
Copyright (C) 2021 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
============================
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Jean Abou Samra <jean <at> abou-samra.fr>
Cc: christopher.lck <at> gmail.com, 58109-done <at> debbugs.gnu.org, guile-devel <at> gnu.org
Subject: Re: bug#58109: simple-format vs (ice-9 format) bug in 3.0.7?
Date: Wed, 12 Oct 2022 22:50:03 +0200
Hi,

Jean Abou Samra <jean <at> abou-samra.fr> skribis:

> OK, understood. How about adding comments and documentation?

That’s a good idea.  Applied with minor tweaks and a commit log.

Thanks!

Ludo’.


This bug report was last modified 2 years and 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.