From 33ceea5cdbed60cdc2108b456c739808f3d58179 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 12 Mar 2012 10:23:17 +0000 Subject: * encoding.c (rb_find_encoding): new function find encoding from arbitrary object as a pointer to rb_encoding, and return NULL if not found. * io.c (io_encoding_set): just warn unsupported encodings, but not exception. [ruby-core:40726] [Bug #5567] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index cced3d2688..ad2b614cd2 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -89,6 +89,7 @@ void rb_enc_set_index(VALUE obj, int encindex); int rb_enc_find_index(const char *name); int rb_to_encoding_index(VALUE); rb_encoding* rb_to_encoding(VALUE); +rb_encoding* rb_find_encoding(VALUE); rb_encoding* rb_enc_get(VALUE); rb_encoding* rb_enc_compatible(VALUE,VALUE); rb_encoding* rb_enc_check(VALUE,VALUE); -- cgit v1.2.3