1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
naruse 2010-05-29 03:57:36 +00:00
parent 8e9f30887c
commit 2f9d028202
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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;
}