diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-09 13:06:00 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-09 13:06:00 +0000 |
| commit | bdfd99116a97f8af40718766673762498669e1b3 (patch) | |
| tree | b7b14acef735a2354f5559d8cc9aa095c3085953 | |
| parent | 8ce3fb87ee2246292ce1a6fd3430c056b0af685d (diff) | |
| download | ruby-bdfd99116a97f8af40718766673762498669e1b3.tar.gz ruby-bdfd99116a97f8af40718766673762498669e1b3.tar.xz ruby-bdfd99116a97f8af40718766673762498669e1b3.zip | |
* encoding.c (rb_enc_replicate): replica of dummy is a dummy.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | encoding.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Wed Jan 9 22:03:26 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * encoding.c (rb_enc_replicate): replica of dummy is a dummy. + Wed Jan 9 20:35:42 2008 GOTOU Yuuzou <gotoyuzo@notwork.org> * lib/webrick/httprequest.rb: supprt X-Forwarded-* header fields. diff --git a/encoding.c b/encoding.c index fc7fa37e2..422744478 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; } |
