mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -1,3 +1,7 @@
|
|||
Mon Jan 7 13:54:57 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* re.c (rb_reg_preprocess): fix fixed_enc condition.
|
||||
|
||||
Mon Jan 7 11:51:49 2008 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rdoc/generators/ri_generator.rb: Merge documentation from the
|
||||
|
|
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
Reference in a new issue