We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
Provide at least:
$ $HOME/.rbenv/versions/2.2.8/bin/ruby --version ruby 2.2.8p477 (2017-09-14 revision 59906) [x86_64-darwin17] $ $HOME/.rbenv/versions/2.2.8/bin/ruby -e 'puts Kernel.format("%A", 0.1)' 0X1.999999999999AP-4 $ $HOME/.rbenv/versions/2.2.8/bin/ruby -e 'puts Kernel.sprintf("%A", 0.1)' 0X1.999999999999AP-4 $ $HOME/.rbenv/versions/2.2.8/bin/ruby -e 'puts Kernel.format("%a", 0.1)' 0x1.999999999999ap-4 $ $HOME/.rbenv/versions/2.2.8/bin/ruby -e 'puts Kernel.sprintf("%a", 0.1)' 0x1.999999999999ap-4
$ $HOME/.rbenv/versions/jruby-9.1.15.0/bin/ruby --version jruby 9.1.15.0 (2.3.3) 2017-12-07 929fde8 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [darwin-x86_64] $ $HOME/.rbenv/versions/jruby-9.1.15.0/bin/ruby -e 'puts Kernel.format("%A", 0.1)' ArgumentError: malformed format string - %A % at org/jruby/RubyString.java:1195 sprintf at org/jruby/RubyKernel.java:811 <main> at -e:1 $ $HOME/.rbenv/versions/jruby-9.1.15.0/bin/ruby -e 'puts Kernel.sprintf("%A", 0.1)' ArgumentError: malformed format string - %A % at org/jruby/RubyString.java:1195 sprintf at org/jruby/RubyKernel.java:811 <main> at -e:1 $ $HOME/.rbenv/versions/jruby-9.1.15.0/bin/ruby -e 'puts Kernel.format("%a", 0.1)' ArgumentError: malformed format string - %a % at org/jruby/RubyString.java:1195 sprintf at org/jruby/RubyKernel.java:811 <main> at -e:1 $ $HOME/.rbenv/versions/jruby-9.1.15.0/bin/ruby -e 'puts Kernel.sprintf("%a", 0.1)' ArgumentError: malformed format string - %a % at org/jruby/RubyString.java:1195 sprintf at org/jruby/RubyKernel.java:811 <main> at -e:1
This is an issue in 9k and in master: https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/util/Sprintf.java#L367
The text was updated successfully, but these errors were encountered:
Right you are! I'll see if it's easy to add.
Sorry, something went wrong.
Well there's a bit of work needed, but it should be sortable out of the original commit to MRI: ruby/ruby@12b2e16e21b.
Skip NotImplementedError exceptions caused by JRuby lack of "%a" supp…
8d2e235
…ort. * jruby/jruby#5122
PR pushed for the new sprintf work in #7612. It has a lot of work left to do.
Successfully merging a pull request may close this issue.
Environment
Provide at least:
Expected Behavior
https://ruby-doc.org/core-1.9.3/Kernel.html#method-i-sprintf
Actual Behavior
This is an issue in 9k and in master:
https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/util/Sprintf.java#L367
The text was updated successfully, but these errors were encountered: