diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 18:55:30 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 18:55:30 +0000 |
commit | d7cc14d4363cca3d0f9b0cf5ab81900e6ec17989 (patch) | |
tree | 4315aa68fe1b521ed283f7258cf27148722cc043 /ruby.c | |
parent | b36c642a8571399bb2f38a5381e922d25ef07093 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |