diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-28 17:59:40 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-28 18:07:17 +0900 |
| commit | 8627157298cb1443bd8562a8fc0740acfb018974 (patch) | |
| tree | a262e9735d2ce414616a4492147776735dd44b75 /include | |
| parent | b87268f130c4a29f4be4172409dbe12cddb4e2f9 (diff) | |
| download | mruby-8627157298cb1443bd8562a8fc0740acfb018974.tar.gz mruby-8627157298cb1443bd8562a8fc0740acfb018974.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
