diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-29 03:57:36 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-29 03:57:36 +0000 |
commit | 2f9d0282021be64a6c0d102d2250808354059b29 (patch) | |
tree | 945ab9a533fab9f835b3015154e8284bec04ab9d | |
parent | 8e9f30887c80776fa2960d684fe3d43b93dbc1c4 (diff) |
* encoding.c (rb_filesystem_encindex): avoid infinite require
loop. [ruby-core:30467]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | encoding.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat May 29 12:56:09 2010 NARUSE, Yui <naruse@ruby-lang.org> + + * encoding.c (rb_filesystem_encindex): avoid infinite require + loop. [ruby-core:30467] + Sat May 29 12:05:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/rdoc/rdoc.rb (RDoc#read_file_contents): take care of BOM. diff --git a/encoding.c b/encoding.c index 001762221f..83607d5103 100644 --- a/encoding.c +++ b/encoding.c @@ -1160,7 +1160,7 @@ rb_filesystem_encindex(void) { int idx = rb_enc_registered("filesystem"); if (idx < 0) - idx = enc_set_filesystem_encoding(); + idx = rb_ascii8bit_encindex(); return idx; } |