diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 02:42:37 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 02:42:37 +0000 |
commit | 8f9ed3c464fea371855792758b9e9d31ba99c0ec (patch) | |
tree | bf7a5e1bc43174638aaedac2b0eb8efe926248b2 /include/ruby | |
parent | 55742dce2d30534faa95551c7904bbf660b4835b (diff) | |
download | ruby-8f9ed3c464fea371855792758b9e9d31ba99c0ec.tar.gz |
* include/ruby/encoding.h (rb_econv_open_exc): declared.
* transcode.c (rb_eNoConverter): new exception.
(rb_econv_open_exc): new function.
(transcode_loop): use rb_econv_open_exc.
* io.c (make_writeconv): use rb_econv_open_exc.
(make_readconv): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/encoding.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 1f0feae98e..748c8cff53 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -256,6 +256,8 @@ rb_econv_result_t rb_econv_convert(rb_econv_t *ec, int flags); void rb_econv_close(rb_econv_t *ec); +VALUE rb_econv_open_exc(const char *senc, const char *denc, int flags); + /* result: 0:success -1:failure */ int rb_econv_insert_output(rb_econv_t *ec, const unsigned char *str, size_t len, const char *str_encoding); |