diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-07 04:55:26 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-07 04:55:26 +0000 |
commit | 238c59842c6f9ab72ace7076a8850b5cc55c421c (patch) | |
tree | 665b494c991fbc96278797742e01ce6ab9810cdb | |
parent | d9d3e87a522ce180768aef2fcb32c236c68b07f2 (diff) | |
download | ruby-238c59842c6f9ab72ace7076a8850b5cc55c421c.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | re.c | 2 |
2 files changed, 5 insertions, 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 @@ -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); } |