String#gsub not matching when string read from file in 1.9 mode #316

bbrowning opened this Issue Sep 26, 2012 · 1 comment

1 participant


TorqueBox has an integration test failing with JRuby 1.7.0.RC1 because a Rails 2.3.14 template is failing to properly modify config/environment.rb. The issue boils down to some odd behavior in String#gsub when the string contents are read from a file vs a hardcoded string.

Here's a reduction of the Rails template runner logic to demonstrate the issue:


This issue was fixed by other encoding-related changes - closing.

@bbrowning bbrowning closed this Oct 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment