pp is broken in --1.9 mode
--------------------------
Key: JRUBY-6173
URL: https://jira.codehaus.org/browse/JRUBY-6173
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.5
Environment: jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388)
(OpenJDK Client VM 1.7.0-ea) [darwin-i386-java]
Reporter: Theo Hultberg
Assignee: Thomas E Enebo
{{pp}} is broken in 1.9 mode, which can be demonstrated with the following code:
{noformat}
require 'pp'
data = {:hello => 'world', :x => %w(a b c)}
pp data
{noformat}
running this in 1.8 and 1.9 mode you get this:
{noformat}
% export JRUBY_OPTS=''
% ruby --1.8 example.rb
{:hello=>"world", :x=>["a", "b", "c"]}
% ruby --1.9 example.rb
{[:hello, "world"]=>nil, [:x, ["a", "b", "c"]]=>nil}
could this be related to JRUBY-6171?
I've noticed that RSpec's diff formatting gets mangled in the same way, it's
probably the same bug.
--
This message is automatically generated by JIRA.
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