ruby-changes:2909
From: ko1@a...
Date: 21 Dec 2007 13:47:11 +0900
Subject: [ruby-changes:2909] nobu - Ruby:r14400 (trunk): * encoding.c (rb_enc_find_index): extension libraries have lower case
nobu 2007-12-21 13:47:00 +0900 (Fri, 21 Dec 2007)
New Revision: 14400
Modified files:
trunk/ChangeLog
trunk/encoding.c
Log:
* encoding.c (rb_enc_find_index): extension libraries have lower case
names conventionally.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14400&r2=14399
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=14400&r2=14399
Index: encoding.c
===================================================================
--- encoding.c (revision 14399)
+++ encoding.c (revision 14400)
@@ -302,6 +302,7 @@
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);
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14399)
+++ ChangeLog (revision 14400)
@@ -1,10 +1,13 @@
-Fri Dec 21 13:40:11 2007 Nobuyoshi Nakada <nobu@r...>
+Fri Dec 21 13:46:58 2007 Nobuyoshi Nakada <nobu@r...>
* encoding.c (rb_enc_register): set encoding constant.
* encoding.c (rb_enc_find_index): replace non-alphanumeric chars with
underscores, so that initialize function can be called.
+ * encoding.c (rb_enc_find_index): extension libraries have lower case
+ names conventionally.
+
* ruby.c (proc_options, process_options): finds encoding after
load_path is initialized.
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml