Project

General

Profile

Actions

Bug #4386

closed

encoding: directive does not affect regex expressions

Bug #4386: encoding: directive does not affect regex expressions

Added by meta (mathew murphy) about 15 years ago. Updated almost 15 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
Backport:
[ruby-core:35171]

Description

=begin
$ cat foo.rb
#!/usr/local/bin/ruby

encoding: UTF-8

puts /foo.*$/.encoding
$ ruby foo.rb
US-ASCII
$
=end

Actions

Also available in: PDF Atom