diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-08 06:30:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-08 06:30:32 +0000 |
commit | db24cb705dd1337129909ccd5923db0ebf695a13 (patch) | |
tree | 070f20b59e33600c03da27331fad8fc9f36b1a46 /miniinit.c | |
parent | 53662a711f616826be4ca8c9ebc74ba2f70102c1 (diff) |
miniinit.c: minimum built-in encodings in miniruby
* common.mk (MINIOBJS): no longer need dmyenc.o.
* miniinit.c (Init_enc): declare minimum built-in encodings so
that these Encoding constants will be available in miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'miniinit.c')
-rw-r--r-- | miniinit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/miniinit.c b/miniinit.c index bc6138a774..0e05cd0a94 100644 --- a/miniinit.c +++ b/miniinit.c @@ -28,3 +28,12 @@ Init_enc_set_filesystem_encoding(void) { return rb_enc_to_index(rb_default_external_encoding()); } + +void +Init_enc(void) +{ + void rb_encdb_declare(const char *name); + rb_encdb_declare("ASCII-8BIT"); + rb_encdb_declare("US-ASCII"); + rb_encdb_declare("UTF-8"); +} |