From: mathew murphy Date: 2011-02-10T02:18:04+09:00 Subject: [ruby-core:35171] [Ruby 1.9-Bug#4386][Open] encoding: directive does not affect regex expressions Bug #4386: encoding: directive does not affect regex expressions http://redmine.ruby-lang.org/issues/show/4386 Author: mathew murphy Status: Open, Priority: Normal Category: M17N ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux] $ cat foo.rb #!/usr/local/bin/ruby # encoding: UTF-8 puts /foo.*$/.encoding $ ruby foo.rb US-ASCII $ ---------------------------------------- http://redmine.ruby-lang.org