aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
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);