diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-15 01:35:56 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-15 01:35:56 +0000 |
| commit | 36fda4a5ccee819e35e6c0b65cedcafa97e71690 (patch) | |
| tree | 3dc4fe58a4c7a5fbc33b457a5460bec313d08eef | |
| parent | 2c53b38b7ce6a63518a44393e8b5a9107cb33061 (diff) | |
| download | ruby-36fda4a5ccee819e35e6c0b65cedcafa97e71690.tar.gz ruby-36fda4a5ccee819e35e6c0b65cedcafa97e71690.tar.xz ruby-36fda4a5ccee819e35e6c0b65cedcafa97e71690.zip | |
* re.c (rb_reg_quote): set US-ACII for ASCII-only string.
[ruby-dev:33785]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15481 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 @@ +Fri Feb 15 10:35:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * re.c (rb_reg_quote): set US-ACII for ASCII-only string. + [ruby-dev:33785] + Fri Feb 15 10:27:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * {win,bcc}32/Makefile.sub (config.h): added HAVE_FTRUNCATE. @@ -2540,7 +2540,7 @@ rb_reg_quote(VALUE str) } if (ascii_only && rb_enc_get_index(str) != 0) { str = rb_str_new3(str); - rb_enc_associate(str, rb_ascii8bit_encoding()); + rb_enc_associate(str, rb_usascii_encoding()); } return str; |
