mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* 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
This commit is contained in:
parent
b36c642a85
commit
d7cc14d436
8 changed files with 18 additions and 13 deletions
|
@ -345,7 +345,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self)
|
|||
}
|
||||
/* set encoding */
|
||||
if (!to_enc) {
|
||||
to_encidx = rb_enc_replicate(to_e, rb_default_encoding());
|
||||
to_encidx = rb_enc_replicate(to_e, rb_ascii_encoding());
|
||||
}
|
||||
*self = dest;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue