Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

&printf sometimes fails silently rather than loudly in Rakudo #1714

Closed
p6rt opened this issue Apr 23, 2010 · 5 comments
Closed

&printf sometimes fails silently rather than loudly in Rakudo #1714

p6rt opened this issue Apr 23, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 23, 2010

Migrated from rt.perl.org#74610 (status was 'resolved')

Searchable as RT74610$

@p6rt
Copy link
Author

p6rt commented Apr 23, 2010

From @masak

* moritz_ found a very weird bug
<moritz_> rakudo​: printf 'foobar'
<p6eval> rakudo 6783b5​: OUTPUT«foobar»
<moritz_> rakudo​: printf '%- 8%s', 'XXX', 'bla'
<p6eval> rakudo 6783b5​: ( no output )
<moritz_> rakudo​: printf '%- 8%s' ~ "\n", 'XXX', 'bla'
<p6eval> rakudo 6783b5​: ( no output )
<masak> what's weird is that it doesn't print anything.
<moritz_> right
<moritz_> it doesn't like the format string
<moritz_> with good reason, I might add
<moritz_> but then it should please die() or fail() or interpret it literally
* masak submits rakudobug
<masak> I've experienced &say do the same lately, I think. but only on
the evalbot.
<masak> this, however, occurs locally too.

@p6rt
Copy link
Author

p6rt commented Aug 12, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 1, 2011

From @Kodiologist

Fixed in a98c690fe14​:

$ ./perl6 -e 'printf "%s\n"'
Not enough arguments supplied for the given format string
  in 'Cool​::sprintf' at line 2683​:CORE.setting
  in 'sprintf' at line 2717​:CORE.setting
  in 'IO​::printf' at line 5479​:CORE.setting
  in 'printf' at line 5670​:CORE.setting
  in main program body at line 1

@p6rt
Copy link
Author

p6rt commented Jan 1, 2011

@Kodiologist - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jan 1, 2011
@p6rt
Copy link
Author

p6rt commented Jan 8, 2011

From @Kodiologist

I've added a test to S32-str/sprintf.t (roast 207e6b48db).

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant