summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-23 06:30:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-23 06:30:26 +0000
commitde110ffd3c2c39ffda9b91e2da351c3dc4e877db (patch)
tree7f6a9f8e9d6d98b3bcd852212df1011c862036fc /parse.y
parent3ddd0f8a5e8cb72727d7ac87609d336d587d42ba (diff)
downloadruby-de110ffd3c2c39ffda9b91e2da351c3dc4e877db.tar.gz
ruby-de110ffd3c2c39ffda9b91e2da351c3dc4e877db.tar.xz
ruby-de110ffd3c2c39ffda9b91e2da351c3dc4e877db.zip
* re.c (REG_CASESTATE): unused macro removed.
(rb_reg_prepare_re): check encoding difference. (rb_reg_initialize): check 8bit byte. * parse.y (parser_tokadd_escape): fix has8bit. [ruby-dev:32113] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index adae07292..75d39042f 100644
--- a/parse.y
+++ b/parse.y
@@ -5206,7 +5206,7 @@ parser_tokadd_escape(struct parser_params *parser, int term,
hex = tok_hex(&numlen);
if (numlen == 0) goto eof;
tokcopy(numlen + 2);
- if (hex >= 0x80) *has8bit = ENC_CODERANGE_UNKNOWN;
+ if (hex >= 0x80) *has8bit = 1;
}
return 0;