summaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-22 16:21:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-22 16:21:09 +0000
commitec2e130a66cc748e40f50e5bfd870933a1471679 (patch)
tree1620594b2751e6367a5e826780f8e23fadf075ee /encoding.c
parent81f45c8e24caff0db46458d4f6e55874ace7c2d4 (diff)
downloadruby-ec2e130a66cc748e40f50e5bfd870933a1471679.tar.gz
ruby-ec2e130a66cc748e40f50e5bfd870933a1471679.tar.xz
ruby-ec2e130a66cc748e40f50e5bfd870933a1471679.zip
* ruby.c (process_options): don't specify .so for encdb here.
"." is replaced by "_" in load_encoding. * encoding.c (load_encoding): add .so here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/encoding.c b/encoding.c
index e051e8d69..2f0b9797d 100644
--- a/encoding.c
+++ b/encoding.c
@@ -456,11 +456,11 @@ require_enc(VALUE enclib)
static int
load_encoding(const char *name)
{
- VALUE enclib = rb_sprintf("enc/%s", name);
+ VALUE enclib = rb_sprintf("enc/%s.so", name);
VALUE verbose = ruby_verbose;
VALUE debug = ruby_debug;
VALUE loaded;
- char *s = RSTRING_PTR(enclib) + 4, *e = RSTRING_END(enclib);
+ char *s = RSTRING_PTR(enclib) + 4, *e = RSTRING_END(enclib) - 3;
int idx;
while (s < e) {