* Guile1.9.14 formatted output
@ 2011-01-10 11:56 Fu-gangqiang
2011-01-26 19:14 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Fu-gangqiang @ 2011-01-10 11:56 UTC (permalink / raw)
To: Guile bug
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
Hi,all
my guile1.9.14 output like this:
when I studied the format procedure following the mannual:
====== mannual start=====
~f
If overflowchar and width are both given and if the output would exceed width, then that many overflowchars are printed instead of the value.
(format #t "~5,,,'xf" 12345) -| 12345
(format #t "~4,,,'xf" 12345) -| xxxx <- bug
====== mannual end=====
but i got like this:
====== repl start=====
scheme@(guile-user)> (format #f "~5,,,'xf" 12345)
"xxxxx"
scheme@(guile-user)> (format #f "~6,,,'xf" 12345)
"12345."
====== repl end=====
[-- Attachment #2: Type: text/html, Size: 5455 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Guile1.9.14 formatted output
2011-01-10 11:56 Guile1.9.14 formatted output Fu-gangqiang
@ 2011-01-26 19:14 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2011-01-26 19:14 UTC (permalink / raw)
To: Fu-gangqiang; +Cc: Guile bug
Hi Fu-gangqiang,
On Mon 10 Jan 2011 12:56, Fu-gangqiang <lispor@163.com> writes:
> (format #t "~5,,,'xf" 12345) -| 12345
> (format #t "~4,,,'xf" 12345) -| xxxx <- bug
> but i got like this:
> scheme@(guile-user)> (format #f "~5,,,'xf" 12345)
>
> "xxxxx"
>
> scheme@(guile-user)> (format #f "~6,,,'xf" 12345)
> "12345."
Indeed, the documentation was wrong. Fixed.
Thanks for the report!
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-26 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 11:56 Guile1.9.14 formatted output Fu-gangqiang
2011-01-26 19:14 ` Andy Wingo
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).