From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Lam Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.guile.devel Subject: bug#58109: simple-format vs (ice-9 format) bug in 3.0.7? Date: Tue, 27 Sep 2022 18:23:14 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c4b56105e9a60900" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23091"; mail-complaints-to="usenet@ciao.gmane.io" To: 58109@debbugs.gnu.org, guile-devel@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue Sep 27 12:24:24 2022 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1od7lI-0005nD-Hf for guile-bugs@m.gmane-mx.org; Tue, 27 Sep 2022 12:24:24 +0200 Original-Received: from localhost ([::1]:43950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1od7lH-000066-Ht for guile-bugs@m.gmane-mx.org; Tue, 27 Sep 2022 06:24:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od7kz-0008WC-E5 for bug-guile@gnu.org; Tue, 27 Sep 2022 06:24:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1od7kw-0004KY-41 for bug-guile@gnu.org; Tue, 27 Sep 2022 06:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1od7kv-0005f3-Vx for bug-guile@gnu.org; Tue, 27 Sep 2022 06:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Lam Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 27 Sep 2022 10:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58109 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org, guile-devel Original-Received: via spool by submit@debbugs.gnu.org id=B.166427422921739 (code B ref -1); Tue, 27 Sep 2022 10:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2022 10:23:49 +0000 Original-Received: from localhost ([127.0.0.1]:52947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od7ki-0005eV-Tv for submit@debbugs.gnu.org; Tue, 27 Sep 2022 06:23:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od7kf-0005eM-Uk for submit@debbugs.gnu.org; Tue, 27 Sep 2022 06:23:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od7kf-0007pD-F9; Tue, 27 Sep 2022 06:23:45 -0400 Original-Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]:41952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1od7kd-0004Fp-FJ; Tue, 27 Sep 2022 06:23:45 -0400 Original-Received: by mail-oi1-x235.google.com with SMTP id r125so11345477oia.8; Tue, 27 Sep 2022 03:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=7mX3YyvovIC8eX1F9/1LJFHLjCB89ODITvtZq6PDl94=; b=G3NAqYU+LFcX4fn4wRS4oqH8Za9++/LHrCYx4j3ersqY/O5XGokljFx0bIKbFmbGl1 wOW+z2WDxOMd0ynzEZpjCXwa5yak2/xeGhI9KcsmSgt0vWMWKm3LxfyxFzqAQH01Ik/R z9FhZSr3q8WTX1+/1+beU1nbsqzR8HXbNOo20Ej/5Q3lMYOweeKE9x0tLJr2YsLsRDni NkvXoTQP1GvXc6whpNYjQ6piU2wmqxvUv0OKy8lvC+5x5AFJIk0QMVj9fyjQxF8dV+h0 hEENNd+8qwO50CMxKSrulStqrsKVtbkd+MeXU4dobZFTaWB+NIxLgHot1zr9DAJWy+5F 2miQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=7mX3YyvovIC8eX1F9/1LJFHLjCB89ODITvtZq6PDl94=; b=YfBmBn66mBwmDseWeVWvE57DjWcFRNwkPTcanoe8jL5ihb7zNK68gzJYNzOjKVEc3z x3griG2d1GCDpeifsOtUpVfM2M5gxN+lub6C4R7f4i9+f1N0+DlWUBqNUBzO8utuinR5 DaIzGzH9OCJ+DESnuq9SheoQ+PRYUhaSfu9gCc8LBGqZti62O5OdsctLzcCb+3uaCDtm wwa/apl+t599pFJVU5GZTR18vZ/RWPUfJjD27Dpsg1P007S9T2DvHGot869MP6d/XQ4H g4G/tRSPY/RmicAeAKuBpqZ5cYRlX+sn6I5Y+vEDGnnFmwOuZrg9V+6bwqMLHJwF6U5q Xz4Q== X-Gm-Message-State: ACrzQf1pElG2tRRFwn+Pogdg3d8L+7gbCf9zlLX0EXbzD2rCvqOSsmW+ c3fLGfZY0bBDgXA3LmBH+pwSmGyMu1F+IHsbY/tYOksrE4rQaw== X-Google-Smtp-Source: AMsMyM435Yi5xza22J4wU7bR5Zoqn4CNd4ppfPDppa5ObFiRJDoCg1ogPTO/uU/C75gH9iNZus0nfzU9LheMbMaDb04= X-Received: by 2002:a05:6808:1b22:b0:350:c0f6:70ff with SMTP id bx34-20020a0568081b2200b00350c0f670ffmr1368555oib.35.1664274221281; Tue, 27 Sep 2022 03:23:41 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=christopher.lck@gmail.com; helo=mail-oi1-x235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10381 gmane.lisp.guile.devel:21371 Archived-At: --000000000000c4b56105e9a60900 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D $ cat s.scm (format #t "~f\n" 2.5) $ guile s.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; 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 #) In ice-9/boot-9.scm: 724:2 4 (call-with-prompt ("prompt") # =E2=80=A6) In ice-9/eval.scm: 619:8 3 (_ #(#(#))) In ice-9/boot-9.scm: 2835:4 2 (save-module-excursion #) 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 . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --000000000000c4b56105e9a60900 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi guilers, here's a short bash session.
Why would the first bash call to "guile s.scm" work, but not th= e second one?
guile-3.0.7 on ubuntu.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
$ cat s.scm
(format #t "~f\n" 2.5)
<= br>$ guile s.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_= COMPILE=3D0
;;; =C2=A0 =C2=A0 =C2=A0 or pass the --no-auto-compile argum= ent to disable.
;;; compiling /home/chris/s.scm
;;; compiled /home/ch= ris/.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:
=C2= =A0 1752:10 =C2=A06 (with-exception-handler _ _ #:unwind? _ # _)
In unkn= own file:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A05 (apply-smob/0 #<= thunk 7efd190d5540>)
In ice-9/boot-9.scm:
=C2=A0 =C2=A0 724:2 =C2= =A04 (call-with-prompt ("prompt") #<procedure 7efd190e5760 =E2= =80=A6> =E2=80=A6)
In ice-9/eval.scm:
=C2=A0 =C2=A0 619:8 =C2=A03 = (_ #(#(#<directory (guile-user) 7efd190d9c80>)))
In ice-9/boot-9.s= cm:
=C2=A0 =C2=A02835:4 =C2=A02 (save-module-excursion #<procedure 7e= fd190c9150 at ice-=E2=80=A6>)
=C2=A0 4380:12 =C2=A01 (_)
In unknow= n file:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 (simple-format #t &qu= ot;~f\n" 2.5)

ERROR: In procedure simple-format:
In procedur= e 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 Sof= tware 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.
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= --000000000000c4b56105e9a60900--