Theo Hultberg created JRUBY-6434:
------------------------------------
Summary: sprintf does not support name references, like
sprintf('%<xyz>s', :xyz => 'abc')
Key: JRUBY-6434
URL: https://jira.codehaus.org/browse/JRUBY-6434
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.6, JRuby 1.6.5, JRuby 1.6.4
Environment: jruby 1.6.6 (ruby-1.9.2-p312) (2012-01-30 5673572)
(OpenJDK Client VM 1.7.0-b222) [darwin-i386-java]
Reporter: Theo Hultberg
Assignee: Thomas E Enebo
MRI supports name references in {{sprintf}}, like
{noformat}
sprintf("%<foo>d : %<bar>f", { :foo => 1, :bar => 2 })
{noformat}
this results in an argument error in JRuby:
{noformat}
ArgumentError: malformed format string - %<
{noformat}
The feature is described at the end of the {{sprintf}} documentation here:
http://rubydoc.info/stdlib/core/1.9.2/Kernel#sprintf-instance_method
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email