diff options
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/encoding.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index d7ad0d0237..675bd5d90d 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -224,6 +224,17 @@ typedef struct { int num_finished; struct rb_transcoding *last_tc; + /* last error */ + struct { + rb_econv_result_t result; + const char *source_encoding; + const char *destination_encoding; + const unsigned char *error_bytes_start; + size_t error_bytes_len; + size_t readagain_len; + int partial_input; + } last_error; + /* The following fields are only for Encoding::Converter. * rb_econv_open set them NULL. */ rb_encoding *source_encoding; |