summaryrefslogtreecommitdiff
path: root/miniinit.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-24 07:01:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-24 07:01:22 +0000
commit7a89049a7697ce0beaa97f555b06924d40567cc7 (patch)
treef8b7127db538d49542494b4db3aff93452d9b5ab /miniinit.c
parent73600fd6f8ac22698fdb02f92c7bef13e5128c77 (diff)
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
Diffstat (limited to 'miniinit.c')
-rw-r--r--miniinit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/miniinit.c b/miniinit.c
index 0e05cd0a94..b4bc4dd437 100644
--- a/miniinit.c
+++ b/miniinit.c
@@ -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