summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 19:42:53 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 19:42:53 +0000
commitde71a6b654a77a171c441c4382a03eb7ea384dbe (patch)
tree8dc9d3269bcafefffe62a5c154c887799bdcb79e /io.c
parentdcafe872a42dffa7f4d04b633e8ee0544d10381a (diff)
downloadruby-de71a6b654a77a171c441c4382a03eb7ea384dbe.tar.gz
ruby-de71a6b654a77a171c441c4382a03eb7ea384dbe.tar.xz
ruby-de71a6b654a77a171c441c4382a03eb7ea384dbe.zip
* io.c (Init_IO): rb_default_rs should be US-ASCII.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 1488dc1ec..f04540417 100644
--- a/io.c
+++ b/io.c
@@ -9692,7 +9692,7 @@ Init_IO(void)
rb_output_fs = Qnil;
rb_define_hooked_variable("$,", &rb_output_fs, 0, rb_str_setter);
- rb_rs = rb_default_rs = rb_str_new2("\n");
+ rb_rs = rb_default_rs = rb_usascii_str_new2("\n");
rb_gc_register_mark_object(rb_default_rs);
rb_output_rs = Qnil;
OBJ_FREEZE(rb_default_rs); /* avoid modifying RS_default */