summaryrefslogtreecommitdiff
path: root/ext/nkf
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-04 10:06:26 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-04 10:06:26 +0000
commita6e736e09d9ef5d42aa321dfaca17b0f7e6b0583 (patch)
tree53ebfd80f09c8fe8c8cde805ba72a13578271148 /ext/nkf
parent0b18a77e7d03a0bbf06bed7b683bddbe1730d61b (diff)
* 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
Diffstat (limited to 'ext/nkf')
-rw-r--r--ext/nkf/nkf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c
index 2476144..a0c14b5 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);