Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202426 - dev-lang/ruby-1.8.6_p110-r1 and REXML::Document.write
Summary: dev-lang/ruby-1.8.6_p110-r1 and REXML::Document.write
Status: RESOLVED DUPLICATE of bug 195505
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL: http://svn.ruby-lang.org/cgi-bin/view...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-15 21:56 UTC by Denis Misiurca
Modified: 2007-12-17 19:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Misiurca 2007-12-15 21:56:33 UTC
Tried to write a simple test program in Ruby, but got an error. I discovered that there are improper variable names in write method:
  def write( output=$stdout, indent=-1, trans=false, ie_hack=false )

but inside method:
  if transitive

Reproducible: Always

Steps to Reproduce:
1. doc = REXML::Document.new(somexml)
   doc.write($stdout, 4, true)
2. see the error message.
Actual Results:  
/usr/lib/ruby/1.8/rexml/document.rb:186:in `write': undefined local variable or method `transitive' for <UNDEFINED> ... </>:REXML::Document (NameError)
        from ./textxml.rb:14

Expected Results:  
As described in http://ruby-doc.org/stdlib/libdoc/rexml/rdoc/classes/REXML/Document.html#M002925
Comment 2 Denis Misiurca 2007-12-15 22:28:22 UTC
See http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml/document.rb?r1=13597&r2=13686 for how to fix this.
Comment 3 Hans de Graaff gentoo-dev Security 2007-12-17 19:54:46 UTC

*** This bug has been marked as a duplicate of bug 195505 ***