summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 04:47:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 04:47:00 +0000
commite15390d08d10b3b1183f9954a4bb2f801b04f368 (patch)
tree3d9b4bbe31f3496fd662a3637e52cf6092bbfa31 /encoding.c
parentef0706a5bf4dd888363f017c2408899009c24c4a (diff)
* encoding.c (rb_enc_find_index): extension libraries have lower case
names conventionally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c
index fdcceab5a2..ba83837f49 100644
--- a/encoding.c
+++ b/encoding.c
@@ -302,6 +302,7 @@ rb_enc_find_index(const char *name)
char *s = RSTRING_PTR(enclib) + 4, *e = RSTRING_END(enclib);
while (s < e) {
if (!ISALNUM(*s)) *s = '_';
+ else if (ISUPPER(*s)) *s = tolower(*s);
++s;
}
OBJ_FREEZE(enclib);