From a6e736e09d9ef5d42aa321dfaca17b0f7e6b0583 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 4 Oct 2008 10:06:26 +0000 Subject: [PATCH] * ext/nkf/nkf.c (rb_nkf_enc_get): don't replicate encoding. [ruby-dev:36575] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/nkf/nkf.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8d828abcee..cb78943c6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 4 19:02:59 2008 NARUSE, Yui + + * ext/nkf/nkf.c (rb_nkf_enc_get): don't replicate encoding. + [ruby-dev:36575] + Sat Oct 4 18:47:22 2008 NARUSE, Yui * ext/stringio/stringio.c (strio_external_encoding): defined. diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c index 24761449d2..a0c14b55a4 100644 --- a/ext/nkf/nkf.c +++ b/ext/nkf/nkf.c @@ -69,9 +69,6 @@ rb_encoding* rb_nkf_enc_get(const char *name) idx = rb_enc_find_index(nkf_enc_name(nkf_enc_to_base_encoding(nkf_enc))); if (idx < 0) { idx = rb_define_dummy_encoding(name); - } else { - rb_encoding *rb_enc = rb_enc_from_index(idx); - idx = rb_enc_replicate(name, rb_enc); } } return rb_enc_from_index(idx);