diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-24 07:56:12 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-24 07:56:12 +0000 |
| commit | 5cb78b5c44aee3c8069f455a35f8cb45fb4c96eb (patch) | |
| tree | e0e17e9cc7a125f288f04ece7ab547bea7a57288 | |
| parent | 44bd8ad4b7bf16dc02987a5b6e3de3bbebe54f53 (diff) | |
| download | ruby-5cb78b5c44aee3c8069f455a35f8cb45fb4c96eb.tar.gz ruby-5cb78b5c44aee3c8069f455a35f8cb45fb4c96eb.tar.xz ruby-5cb78b5c44aee3c8069f455a35f8cb45fb4c96eb.zip | |
* re.c (rb_reg_initialize): 7bit clean regexp should be US-ASCII.
[ruby-dev:33346]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | re.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Jan 24 16:53:06 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * re.c (rb_reg_initialize): 7bit clean regexp should be US-ASCII. + [ruby-dev:33346] + Thu Jan 24 16:31:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * io.c (rb_io_getline_fast): the end point of left_char_head() @@ -2008,7 +2008,7 @@ rb_reg_initialize(VALUE obj, const char *s, int len, rb_encoding *enc, } } else if (!(options & ARG_ENCODING_FIXED)) { - enc = a_enc; + enc = rb_usascii_encoding(); } rb_enc_associate((VALUE)re, enc); |
