Found this in the course of getting rubygems to install. The following blows up with a ClassCastEx because it assumes only strings will result from the block. My fix was to use toString instead of ((RubyString)newStr).getValue()
$prefix/bin'.gsub(%r<\$([^/]+)>) { puts $1 }
It's a fairly small fix, but it seems correct enough. It's already
committed to cnutter_work1.
- Charlie
string_gsub_nil_fix.patch
Description: Binary data
