mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
encoding.c: find encoding index
* encoding.c (rb_locale_encindex): find encoding index without making a string object every time. [ruby-core:58160] [Bug #9080] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
73600fd6f8
commit
7a89049a76
4 changed files with 40 additions and 12 deletions
|
|
@ -20,7 +20,14 @@ const char ruby_initial_load_paths[] = "";
|
|||
VALUE
|
||||
rb_locale_charmap(VALUE klass)
|
||||
{
|
||||
return rb_usascii_str_new2("ASCII-8BIT");
|
||||
/* never used */
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
int
|
||||
rb_locale_charmap_index(void)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue