mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* re.c (rb_reg_preprocess): fix fixed_enc condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9d3e87a52
commit
238c59842c
2 changed files with 5 additions and 1 deletions
2
re.c
2
re.c
|
@ -1914,7 +1914,7 @@ rb_reg_preprocess(const char *p, const char *end, rb_encoding *enc,
|
|||
if (unescape_nonascii(p, end, enc, buf, fixed_enc, err) != 0)
|
||||
return Qnil;
|
||||
|
||||
if (fixed_enc) {
|
||||
if (*fixed_enc) {
|
||||
rb_enc_associate(buf, *fixed_enc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue