From 2a07423f9cb22672cc989b82afd61444dddba7df Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 10 Mar 2008 06:53:50 +0000 Subject: [PATCH] * version.c (MKSTR): make US-ASCII. [ruby-dev:34010] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ version.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 42a971fd1b..8b535cf033 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 10 15:53:48 2008 Nobuyoshi Nakada + + * version.c (MKSTR): make US-ASCII. [ruby-dev:34010] + Mon Mar 10 02:08:21 2008 NARUSE, Yui * string.c (rb_str_index): if t == s + pos, the character beginning diff --git a/version.c b/version.c index 1da18951c8..3a1d1fc3ff 100644 --- a/version.c +++ b/version.c @@ -14,7 +14,7 @@ #include #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;