From ee15e6ee3b08b3348cc813a4f82abebc58fcbc31 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 28 Oct 2009 19:42:53 +0000 Subject: [PATCH] * io.c (Init_IO): rb_default_rs should be US-ASCII. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9e510835b4..31cc4804b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 29 04:40:36 2009 NARUSE, Yui + + * io.c (Init_IO): rb_default_rs should be US-ASCII. + Thu Oct 29 01:22:01 2009 Yutaka Kanemoto * ext/socket/extconf.rb : Compilation failure on AIX. diff --git a/io.c b/io.c index 1488dc1ecc..f04540417e 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 */