Bug 521083

Summary: Latest ruby breaks BigDecimal and is unusable.
Product: Red Hat Enterprise Linux 5 Reporter: John Gorman <jgorman>
Component: rubyAssignee: Akira TAGOH <tagoh>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE <qe-baseos-auto>
Severity: urgent Docs Contact:
Priority: low    
Version: 5.3   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-07 03:59:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Gorman 2009-09-03 14:41:50 UTC
Latest ruby breaks BigDecimal and is unusable.
Run this program:

#!/usr/bin/env ruby
require 'bigdecimal'
expect = "0.34409E3"
result = BigDecimal.new("344.09").to_s
system 'rpm -q ruby'
puts "expect: #{expect}"
puts "result: #{result}"
if expect == result
  puts "Okay"
else
  puts "Failed"
end

Results before yum update:

ruby-1.8.5-5.el5_2.6
expect: 0.34409E3
result: 0.34409E3
Okay

Results after yum update:

ruby-1.8.5-5.el5_3.7
expect: 0.34409E3
result: 0.3449E3
Failed

The only workaround is to install ruby from source.

Comment 1 Akira TAGOH 2009-09-07 03:59:58 UTC

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