1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

refine error message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-12-22 07:14:07 +00:00
parent 05ac036933
commit fa3d06c738

2
re.c
View file

@ -956,7 +956,7 @@ rb_reg_prepare_re(VALUE re, VALUE str)
if ((RBASIC(re)->flags & REG_ENCODING_NONE) &&
enc != rb_ascii_encoding() &&
rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT) {
rb_warn("none encoding regexp with non ASCII string (string encoding: %s)",
rb_warn("regexp match /.../n against to %s string",
rb_enc_name(enc));
}
}