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 --- ruby.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index adb7269ad..fce8479bd 100644 --- a/ruby.c +++ b/ruby.c @@ -144,12 +144,12 @@ locale_encoding(void) int idx; if (codeset == Qnil) - return rb_ascii_encoding(); + return rb_ascii8bit_encoding(); name = StringValueCStr(codeset); idx = rb_enc_find_index(name); if (idx < 0) - return rb_ascii_encoding(); + return rb_ascii8bit_encoding(); return rb_enc_from_index(idx); } -- cgit