From 2f9d0282021be64a6c0d102d2250808354059b29 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 29 May 2010 03:57:36 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ encoding.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2700d4e3d7b6eb..5788cbe0394f18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat May 29 12:56:09 2010 NARUSE, Yui + + * encoding.c (rb_filesystem_encindex): avoid infinite require + loop. [ruby-core:30467] + Sat May 29 12:05:51 2010 Nobuyoshi Nakada * lib/rdoc/rdoc.rb (RDoc#read_file_contents): take care of BOM. diff --git a/encoding.c b/encoding.c index 001762221ffb48..83607d51038ace 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; }