diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 17:40:13 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 17:40:13 +0000 |
commit | 4e788aa17e4d4c52e49f3386313bcb948431ea9a (patch) | |
tree | b97c20b128d45fba0c81abd7f50324a93a441f87 /re.c | |
parent | 13bfd090211b099095f6b768cee8966323e1d8bb (diff) |
* re.c (rb_reg_initialize): don't set US-ASCII to regexp
when parser make initially compile a regexp.
Usually regexp are used for the same of its script encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -2403,9 +2403,6 @@ rb_reg_initialize(VALUE obj, const char *s, long len, rb_encoding *enc, enc = fixed_enc; } } - else if (!(options & ARG_ENCODING_FIXED)) { - enc = rb_usascii_encoding(); - } rb_enc_associate((VALUE)re, enc); if ((options & ARG_ENCODING_FIXED) || fixed_enc) { |