summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 18:55:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 18:55:30 +0000
commitd7cc14d4363cca3d0f9b0cf5ab81900e6ec17989 (patch)
tree4315aa68fe1b521ed283f7258cf27148722cc043 /numeric.c
parentb36c642a8571399bb2f38a5381e922d25ef07093 (diff)
* encoding.c (rb_ascii_encoding): renamed from previous
rb_default_encoding(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 45a9ce0..a152c34 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_default_encoding();
+ if (!enc) enc = rb_ascii_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);