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;