From: Dave Thomas Date: 2008-10-15T06:31:27+09:00 Subject: [ruby-core:19337] [Bug #647] Source encoding not applied to 7-bit regular expressions Bug #647: Source encoding not applied to 7-bit regular expressions http://redmine.ruby-lang.org/issues/show/647 Author: Dave Thomas Status: Open, Priority: Normal # encoding: utf-8 "cat".encoding # => # "������".encoding # => # /cat/.encoding # => # # <<<< :������.encoding # => # I was expecting the regular expression to be encoded the same way a string is. Matz: Yes, it's a bug. Thank you. ---------------------------------------- http://redmine.ruby-lang.org