diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-12 07:11:27 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-12 07:11:27 +0000 |
commit | 25c7c4a4ded9be28d60c333743e98087c19e3858 (patch) | |
tree | 62238a17c42476f30295a53a938a2e94af3b7746 /re.c | |
parent | 1e6308e28d9852dc5f52c3842b1bfffc749cd4ba (diff) |
* re.c (rb_reg_initialize_m): fix wrong index for the lang
option's value 'N'. reported by Masaya TARUI via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2893,7 +2893,7 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self) enc = 0; if (argc == 3 && !NIL_P(argv[2])) { char *kcode = StringValuePtr(argv[2]); - if (kcode[0] == 'n' || kcode[1] == 'N') { + if (kcode[0] == 'n' || kcode[0] == 'N') { enc = rb_ascii8bit_encoding(); flags |= ARG_ENCODING_NONE; } |