From 98e964419e1b86e1ba85a2fb1698e6fd15c70ced Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 2 Mar 2017 23:33:06 +0000 Subject: 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 --- re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 're.c') 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; -- cgit v1.2.3