General

Profile

dlh (Daniel Harple)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

02/10/2011

08:48 AM Ruby Bug #4386: encoding: directive does not affect regex expressions
=begin
> US-ASCII only regexps are set to US-ASCII encoding, same as US-ASCII only strings. It's intentional.

In this case Regexp is not consistent with String's behavior:

$ cat test.rb
# encoding: utf-8
r = /a/
s = "a"...
dlh (Daniel Harple)

Also available in: Atom