diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 06:59:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 06:59:48 +0000 |
commit | 12df6cf7cece79a1d5d99037b35b6a28c3c3296c (patch) | |
tree | 05cb8f23c43b7fcd17dad6e3b84a228d24885a3b /include/ruby | |
parent | 328e6a02bf19c4b0397a6a2e066b273e7dd339de (diff) | |
download | ruby-12df6cf7cece79a1d5d99037b35b6a28c3c3296c.tar.gz |
* encoding.c (rb_enc_init): use enc_register_at() directly.
* encoding.c (rb_utf8_encoding): returns utf-8 encoding.
* include/ruby/encoding.h (rb_utf8_encoding): prototyped.
* parse.y (UTF8_ENC): uses rb_utf8_encoding().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/encoding.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 1c45abb4bb..4b238d3a52 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -114,6 +114,7 @@ int rb_enc_str_asciionly_p(VALUE); #define rb_enc_str_asciicompat_p(str) rb_enc_asciicompat(rb_enc_get(str)) VALUE rb_enc_from_encoding(rb_encoding *enc); rb_encoding *rb_default_encoding(void); +rb_encoding *rb_utf8_encoding(void); rb_encoding *rb_default_external_encoding(void); VALUE rb_enc_default_external(void); void rb_enc_set_default_external(VALUE encoding); |