Bug #2052: Regexp Equality When Multiple Encoding Options Are Present
http://redmine.ruby-lang.org/issues/show/2052

Author: Run Paint Run Run
Status: Open, Priority: Low
ruby -v: ruby 1.9.2dev (2009-09-05 trunk 24754) [i686-linux]

$ cat /tmp/r.rb 
  # Options include 'n'
  p /foo/esnuesues == /foo/s
  # Options don't include 'n'
  p /foo/esuesues == /foo/s

1.8:

  $ ruby8 /tmp/r.rb 
  true
  true

1.9:

  $ ruby /tmp/r.rb 
  false
  true

Is this intentional? Is 'n' the exception to the rule that all but the last encoding specifier are ignored?


----------------------------------------
http://redmine.ruby-lang.org