Project

General

Profile

Actions

Bug #647

closed

Source encoding not applied to 7-bit regular expressions

Added by pragdave (Dave Thomas) over 15 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:19337]

Description

=begin

encoding: utf-8

"cat".encoding # => #Encoding:UTF-8
"δδδ".encoding # => #Encoding:UTF-8
/cat/.encoding # => #Encoding:US-ASCII # <<<<
:δδδ.encoding # => #Encoding:UTF-8

I was expecting the regular expression to be encoded the same way a
string is.

Matz: Yes, it's a bug. Thank you.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0