diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-18 01:37:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-18 01:37:27 +0000 |
commit | f28118eb693d721046ed8ef692724f915f3162e7 (patch) | |
tree | 21d11f27b6cdcced635f8efcb7a741757d4cd748 /encoding.c | |
parent | d8644f632b5678ca28d1b681e0e2f1109cad185e (diff) |
* encoding.c (rb_enc_find_index): use original encoding name to
load DLL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c index 07a1f8bfc9..505aaa9dcb 100644 --- a/encoding.c +++ b/encoding.c @@ -497,7 +497,7 @@ rb_enc_find_index(const char *name) enc_register_at(i, name, rb_enc_from_index(b)); } else { - i = load_encoding(name); + i = load_encoding(rb_enc_name(enc)); if (enc_autoload_p(rb_enc_from_index(i))) { rb_warn("failed to load encoding (%s); use ASCII-8BIT instead", name); |