ruby-changes:4249
From: ko1@a...
Date: Mon, 10 Mar 2008 15:54:05 +0900 (JST)
Subject: [ruby-changes:4249] nobu - Ruby:r15739 (trunk): * version.c (MKSTR): make US-ASCII.
nobu 2008-03-10 15:53:50 +0900 (Mon, 10 Mar 2008) New Revision: 15739 Modified files: trunk/ChangeLog trunk/version.c Log: * version.c (MKSTR): make US-ASCII. [ruby-dev:34010] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15739&r2=15738&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.c?r1=15739&r2=15738&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15738) +++ ChangeLog (revision 15739) @@ -1,3 +1,7 @@ +Mon Mar 10 15:53:48 2008 Nobuyoshi Nakada <nobu@r...> + + * version.c (MKSTR): make US-ASCII. [ruby-dev:34010] + Mon Mar 10 02:08:21 2008 NARUSE, Yui <naruse@r...> * string.c (rb_str_index): if t == s + pos, the character beginning Index: version.c =================================================================== --- version.c (revision 15738) +++ version.c (revision 15739) @@ -14,7 +14,7 @@ #include <stdio.h> #define PRINT(type) puts(ruby_##type) -#define MKSTR(type) rb_obj_freeze(rb_str_new(ruby_##type, sizeof(ruby_##type)-1)) +#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1)) const char ruby_version[] = RUBY_VERSION; const char ruby_release_date[] = RUBY_RELEASE_DATE; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/