From 9817450d161faabcb3de99e8d715402ddf3d0096 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 22 Dec 2007 23:47:18 +0000 Subject: * include/ruby/encoding.h, encoding.c, re.c, io.c, parse.y, numeric.c, ruby.c, transcode.c: rename rb_ascii_encoding. to rb_ascii8bit_encoding. rb_ascii_encoding is ambiguous with ASCII-8BIT and US-ASCII. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index b1521a1e1..18faa4282 100644 --- a/io.c +++ b/io.c @@ -350,7 +350,7 @@ rb_io_check_readable(rb_io_t *fptr) if (!fptr->enc) { fptr->enc = (fptr->fd == 0) ? rb_default_external_encoding() - : rb_ascii_encoding(); + : rb_ascii8bit_encoding(); } } @@ -2892,7 +2892,7 @@ rb_io_binmode(VALUE io) #endif fptr->mode |= FMODE_BINMODE; - fptr->enc = rb_ascii_encoding(); + fptr->enc = rb_ascii8bit_encoding(); return io; } -- cgit