Actions
Bug #9096
closedRegexp.quote(UTF-8) returns US-ASCII
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
Backport:
Description
The attached program contains a unit test demonstrating that doing Regexp.quote() on an UTF-8 encoded string returns a US-ASCII encoded string (or at least I think it does...).
I would expect Regexp.quote() to return a string with the same encoding as the input string.
Files
Actions
Like0
Like0Like0