diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-02 23:33:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-02 23:33:06 +0000 |
commit | d8cee4ff0a851037e96fe76d951a1549284c875a (patch) | |
tree | f775ea9a7cce2f2f4850409e225573a1ddf53d45 /re.c | |
parent | a698d99703fc55c83533ab6fbe25c1797e8746c6 (diff) | |
download | ruby-d8cee4ff0a851037e96fe76d951a1549284c875a.tar.gz |
refine a warning message.
The "n" option for regexp, /.../n, is historical.
It doesn't mean the regexp works as binary match since Ruby 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1410,7 +1410,7 @@ rb_reg_prepare_enc(VALUE re, VALUE str, int warn) else if (warn && (RBASIC(re)->flags & REG_ENCODING_NONE) && enc != rb_ascii8bit_encoding() && cr != ENC_CODERANGE_7BIT) { - rb_warn("binary regexp match /.../n against %s string", + rb_warn("historical binary regexp match /.../n against %s string", rb_enc_name(enc)); } return enc; |