diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 07:16:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 07:16:04 +0000 |
commit | 0f09f59ef7ae5179936c48311574f5607034ef43 (patch) | |
tree | 8bf6b9ceb8deccd44e943a34458c142612ec4990 /parse.y | |
parent | 19dee8af57634c5813286ffbb63cc82611748378 (diff) | |
download | ruby-0f09f59ef7ae5179936c48311574f5607034ef43.tar.gz |
* parse.y (reg_compile_gen): copy encoding from source string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -8170,6 +8170,7 @@ reg_compile_gen(struct parser_params* parser, VALUE str, int options) compile_error(PARSER_ARG "%s", RSTRING_PTR(re)); return Qnil; } + rb_enc_copy(re, str); return re; } |