From ad4fb57a3aea3bf5c1ca2a1fa937e549321e021a Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 9 Jan 2008 13:06:00 +0000 Subject: [PATCH] * encoding.c (rb_enc_replicate): replica of dummy is a dummy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ encoding.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 94d5e0c5e4..9eaf3b7623 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jan 9 22:03:26 2008 NARUSE, Yui + + * encoding.c (rb_enc_replicate): replica of dummy is a dummy. + Wed Jan 9 20:35:42 2008 GOTOU Yuuzou * lib/webrick/httprequest.rb: supprt X-Forwarded-* header fields. diff --git a/encoding.c b/encoding.c index fc7fa37e24..422744478e 100644 --- a/encoding.c +++ b/encoding.c @@ -207,6 +207,7 @@ set_base_encoding(int index, rb_encoding *base) VALUE enc = rb_enc_from_encoding(enc_table[index].enc); rb_ivar_set(enc, id_base_encoding, rb_enc_from_encoding(base)); + if (ENC_DUMMY_P(base)) FL_SET(enc, ENC_DUMMY); return enc; }