diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-18 23:52:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-20 14:59:19 +0900 |
commit | 6ff9604f85bf5ffcb6dbfd9ff99ab420c9a5f415 (patch) | |
tree | f78d51354355cdf1bfe683e8451fc2bc1864645c /localeinit.c | |
parent | 840115bf46476dc2b3c175f7716b4d6000906f40 (diff) | |
download | ruby-6ff9604f85bf5ffcb6dbfd9ff99ab420c9a5f415.tar.gz |
[ruby/stringio] Raise an error if encoding conversion not succeeded
As `rb_str_conv_enc()` returns the argument string object itself
unchanged when any conversion failed, check the incompatibility in
that case.
Fixes https://github.com/ruby/stringio/issues/13
https://github.com/ruby/stringio/commit/ede6bdcc71
Diffstat (limited to 'localeinit.c')
0 files changed, 0 insertions, 0 deletions