From 5b809a28f825015661e7f51f0ecb5ecdfa7b77bd 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index a152c340d9..cd49ec2be9 100644 --- a/numeric.c +++ b/numeric.c @@ -1860,7 +1860,7 @@ int_chr(int argc, VALUE *argv, VALUE num) break; } enc = rb_to_encoding(argv[0]); - if (!enc) enc = rb_ascii_encoding(); + if (!enc) enc = rb_ascii8bit_encoding(); if (i < 0 || (n = rb_enc_codelen(i, enc)) <= 0) goto out_of_range; str = rb_enc_str_new(0, n, enc); rb_enc_mbcput(i, RSTRING_PTR(str), enc); -- cgit v1.2.3