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:
parent
05ac036933
commit
fa3d06c738
1 changed files with 1 additions and 1 deletions
2
re.c
2
re.c
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue