summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-02 23:33:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-02 23:33:06 +0000
commitd8cee4ff0a851037e96fe76d951a1549284c875a (patch)
treef775ea9a7cce2f2f4850409e225573a1ddf53d45 /re.c
parenta698d99703fc55c83533ab6fbe25c1797e8746c6 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index a98ad0851c..d0aa2a792e 100644
--- a/re.c
+++ b/re.c
@@ -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;