Bug 521083 - Latest ruby breaks BigDecimal and is unusable.
Summary: Latest ruby breaks BigDecimal and is unusable.
Keywords:
Status: CLOSED DUPLICATE of bug 510277
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ruby
Version: 5.3
Hardware: All
OS: Linux
low
urgent
Target Milestone: rc
: ---
Assignee: Akira TAGOH
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-03 14:41 UTC by John Gorman
Modified: 2009-09-07 03:59 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-07 03:59:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.