Package: libruby1.8 Version: 1.8.6.111-1 Severity: important Tags: patch I have several programs that use REXML to generate XML documents. Calling Document.write to output the XML document currently fails and aborts execution with the following error message.
/usr/lib/ruby/1.8/rexml/document.rb:186:in `write': undefined local variable or method `transitive' for <UNDEFINED> ... </>:REXML::Document (NameError) The API for write in /usr/lib/ruby/1.8/rexml/document.rb and in the documentation is write( output=$stdout, indent=-1, trans=false, ie_hack=false ) But then on line 186 there is if transitive ... else ... end "if transitive" should be "if trans". Here is the simple patch to fix this problem: ===== BEGIN PATCH ===== --- document.rb 2007-10-23 20:10:34.000000000 -0600 +++ document-fix.rb 2007-10-23 20:11:06.000000000 -0600 @@ -183,7 +183,7 @@ output = Output.new( output, xml_decl.encoding ) end formatter = if indent > -1 - if transitive + if trans REXML::Formatters::Transitive.new( indent, ie_hack ) else REXML::Formatters::Pretty.new( indent, ie_hack ) ====== END PATCH ====== -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.23.1-amd64 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libruby1.8 depends on: ii libc6 2.6.1-6 GNU C Library: Shared libraries ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand ii zlib1g 1:1.2.3.3.dfsg-6 compression library - runtime libruby1.8 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]