summaryrefslogtreecommitdiff
path: root/ruby.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 /ruby.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 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index 19b243578f..adb7269ad2 100644
--- a/ruby.c
+++ b/ruby.c
@@ -144,12 +144,12 @@ locale_encoding(void)
int idx;
if (codeset == Qnil)
- return rb_default_encoding();
+ return rb_ascii_encoding();
name = StringValueCStr(codeset);
idx = rb_enc_find_index(name);
if (idx < 0)
- return rb_default_encoding();
+ return rb_ascii_encoding();
return rb_enc_from_index(idx);
}