Project

General

Profile

« Previous | Next » 

Revision acbb1812

Added by naruse (Yui NARUSE) over 16 years ago

use rb_enc_get to get the encoding of a Regexp object.

  • re.c (reg_enc_error): use rb_enc_get to get the encoding of
    a Regexp object. REGEXP(re)->ptr->enc is the encoding of the
    regexp engin for patterns and target strings.
    [ruby-core:23208]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e