Bugs item #12314, was opened at 2007-07-15 20:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=12314&group_id=494
Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Summary: node.to_s doesn't print the XML on 64bit AMD? Initial Comment: I' trying to rerun a project from last year, but the code behaves differently to the old system. Old system Linux oldsrv 2.6.10-1.12_FC2 #1 Wed Feb 2 01:13:49 EST 2005 i686 athlon i386 GNU/Linux [EMAIL PROTECTED]:~ ruby -v ruby 1.8.3 (2005-09-21) [i686-linux] New system Linux newsrv 2.6.15-26-amd64-server #1 SMP Thu Aug 3 03:32:26 UTC 2006 x86_64 GNU/Linux [EMAIL PROTECTED]:~ ruby -v ruby 1.8.4 (2005-12-24) [x86_64-linux] [EMAIL PROTECTED]:~ dpkg -l | grep ruby ii libfcgi-ruby1.8 0.8.6-1 FastCGI library for Ruby ii libmysql-ruby 2.7-1.1build2 MySQL module for Ruby ii libmysql-ruby1.8 2.7-1.1build2 MySQL module for Ruby 1.8 ii libreadline-ruby1.8 1.8.4-1ubuntu1.3 Readline interface for Ruby 1.8 ii libreadline-ruby1.9 1.9.0+20060423-3ubuntu1 Readline interface for Ruby 1.9 ii libruby1.8 1.8.4-1ubuntu1.3 Libraries necessary to run Ruby 1.8 ii libruby1.9 1.9.0+20060423-3ubuntu1 Libraries necessary to run Ruby 1.9 ii libxml-ruby1.8 0.3.4-4 Ruby interface to libxml ii libxslt-ruby1.8 0.3.4-3 Ruby interface to libxslt ii libzlib-ruby 0.6.0+ruby1.8.2-1 Extension library to use zlib from Ruby ii rdoc 1.8.2-1 Generate documentation from ruby source file ii ruby 1.8.2-1 An interpreter of object-oriented scripting ii ruby1.8 1.8.4-1ubuntu1.3 Interpreter of object-oriented scripting lan ii ruby1.8-dev 1.8.4-1ubuntu1.3 Header files for compiling extension modules [EMAIL PROTECTED]:~ dpkg -l | grep xml ii libxml-ruby1.8 0.3.4-4 Ruby interface to libxml ii libxml2 2.6.24.dfsg-1ubuntu1 GNOME XML library ii libxml2-dev 2.6.24.dfsg-1ubuntu1 Development files for the GNOME XML library ii libxml2-utils 2.6.24.dfsg-1ubuntu1 XML utilities example code: 1 xmldoc.find(an_xpath).each do |matchingnode| 2 outfile << "<DOC>\n" 3 outfile << "#{matchingnode.path}\n" 4 outfile << matchingnode 5 outfile << "\n</DOC>\n" 6 count+=3+matchingnode.to_s.count("\n") 7 end Line 3 works fine under both systems. On the old system line 4 printed the node (subtree), on the new system it prints an empty string or only some text nodes from within the tree. On every other file it crashes: undefined method `count' for nil:NilClass (NoMethodError) Any hint would be appreciated! sledgy .at. gmx.net ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-07-10 16:17 Message: Can you try again with the lastest version? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=12314&group_id=494 _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel