mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
* io.c (fptr_finalize): close the IO object even if finish_writeconv or
flush is failed. (finish_writeconv): don't raise. return errno or exception. (finish_writeconv_arg): removed. (finish_writeconv_sync): follow finish_writeconv change. * transcode.c (rb_econv_make_exception): new function. * include/ruby/encoding.h (rb_econv_make_exception): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
20f5c2a3ba
commit
b17c5eba46
4 changed files with 60 additions and 52 deletions
|
@ -248,6 +248,9 @@ const char *rb_econv_encoding_to_insert_output(rb_econv_t *ec);
|
|||
/* raise an error if the last rb_econv_convert is error */
|
||||
void rb_econv_check_error(rb_econv_t *ec);
|
||||
|
||||
/* returns an exception object or nil */
|
||||
VALUE rb_econv_make_exception(rb_econv_t *ec);
|
||||
|
||||
int rb_econv_putbackable(rb_econv_t *ec);
|
||||
void rb_econv_putback(rb_econv_t *ec, unsigned char *p, int n);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue