diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-28 17:59:40 +0900 |
|---|---|---|
| committer | Hiroshi Mimaki <[email protected]> | 2020-05-07 09:32:46 +0900 |
| commit | 6b839b231971f058656521dc39bd4f27968230c6 (patch) | |
| tree | 3ea028c51527b22ec189dd2d9c0344b48b1735b3 /include | |
| parent | 45bd372755171cee72fd547f3295653918231f77 (diff) | |
| download | mruby-6b839b231971f058656521dc39bd4f27968230c6.tar.gz mruby-6b839b231971f058656521dc39bd4f27968230c6.zip | |
Fix `IO#readchar` to return broken UTF-8 rather than `EOF` error.
The behavior is different from CRuby, but we believe this is a right
behavior for mruby, which only supports either ASCII or UTF-8
exclusively; fix #4983, ref #4982
```
$ printf '\xe3\x81' | ruby -e 'p STDIN.readchar'
"\xE3\x81"
```
```
$ printf '\xe3\x81' | mruby -e 'p STDIN.readchar'
"\xE3"
```
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
