diff --git a/bin/rhogen b/bin/rhogen index 91c58c65966..f1a049addd1 100755 --- a/bin/rhogen +++ b/bin/rhogen @@ -21,7 +21,7 @@ class String return self end def encoding - if RUBY_VERSION =~ /1\.8/ and Encoding.responds_to?('new') + if RUBY_VERSION =~ /^1\.8/ and Encoding.responds_to?('new') Encoding.new else Encoding.default_external