mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +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
|
@ -3854,6 +3854,12 @@ econv_set_replacement(VALUE self, VALUE arg)
|
|||
return arg;
|
||||
}
|
||||
|
||||
VALUE
|
||||
rb_econv_make_exception(rb_econv_t *ec)
|
||||
{
|
||||
return make_econv_exception(ec);
|
||||
}
|
||||
|
||||
void
|
||||
rb_econv_check_error(rb_econv_t *ec)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue