diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Oct 29 04:40:36 2009 NARUSE, Yui <naruse@ruby-lang.org> + + * io.c (Init_IO): rb_default_rs should be US-ASCII. + Thu Oct 29 01:22:01 2009 Yutaka Kanemoto <kanemoto@ruby-lang.org> * ext/socket/extconf.rb : Compilation failure on AIX. @@ -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 */ |