mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
cd42707d86
commit
5b809a28f8
9 changed files with 21 additions and 14 deletions
|
@ -357,7 +357,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self)
|
|||
}
|
||||
/* set encoding */
|
||||
if (!to_enc) {
|
||||
to_encidx = rb_enc_replicate(to_e, rb_ascii_encoding());
|
||||
to_encidx = rb_enc_replicate(to_e, rb_ascii8bit_encoding());
|
||||
}
|
||||
*self = dest;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue