summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-30 07:48:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-30 07:48:52 +0000
commit2158f346862bd2c55f8a9794b9eb0a37f1a3ba28 (patch)
treecc458867d62165bc00274eefd1f1b5c40ce088b5
parent81a6e383952d60672135f45e1fdec44b2b851693 (diff)
downloadruby-2158f346862bd2c55f8a9794b9eb0a37f1a3ba28.tar.gz
ruby-2158f346862bd2c55f8a9794b9eb0a37f1a3ba28.tar.xz
ruby-2158f346862bd2c55f8a9794b9eb0a37f1a3ba28.zip
* tool/compile_prelude.rb: use US-ASCII name.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--tool/compile_prelude.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3cbd318de..6ca76ffac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jun 30 16:48:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/compile_prelude.rb: use US-ASCII name.
+
Tue Jun 30 16:46:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* insns.def, tool/instruction.rb: fixed types.
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb
index 72cf961bd..e0a011ce2 100644
--- a/tool/compile_prelude.rb
+++ b/tool/compile_prelude.rb
@@ -77,8 +77,8 @@ Init_<%=init_name%>(void)
{
% lines_list.each_with_index {|(setup_lines, lines), i|
rb_iseq_eval(rb_iseq_compile(
- rb_str_new(prelude_code<%=i%>, sizeof(prelude_code<%=i%>) - 1),
- rb_str_new(prelude_name<%=i%>, sizeof(prelude_name<%=i%>) - 1),
+ rb_usascii_str_new(prelude_code<%=i%>, sizeof(prelude_code<%=i%>) - 1),
+ rb_usascii_str_new(prelude_name<%=i%>, sizeof(prelude_name<%=i%>) - 1),
INT2FIX(<%=1-setup_lines.length%>)));
% }