Bugs item #7202, was opened at 2006-12-09 23:21 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7202&group_id=426 Category: Standard Library Group: 1.8.x Status: Open Resolution: None Priority: 3 Submitted By: Darren Smith (flagitious) Assigned to: Nobody (None) Summary: String#[]= decimal bug Initial Comment: a='asdf' a[1] -> 115 a[1.0] -> 115 a[1]=110 -> 110 a[1.0]=110 -> IndexError: index 9675114 out of string This problem does not seem to happen if the variable 'a' is an Array. The bug occurred on: ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0] and: ruby 1.8.5 (2006-08-25) [x86_64-freebsd6.1] ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7202&group_id=426