diff options
author | Alan Wu <[email protected]> | 2024-12-19 10:32:14 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-19 10:32:14 -0500 |
commit | ce849d565bf6aae8e0179fffb04eb1f665f17347 (patch) | |
tree | 8daa5676e7234f2aafbc18635e7d4b4d861d76cf /error.c | |
parent | 7b2ae8df905d7bbc084d31a8f55cecc7e7c422b3 (diff) |
ruby2_keywords warnings: Quote non-UTF8 method names fully
It used to quote only part of the method name because NUL byte in
the method terminates the C string:
```
(irb)> "abcdef".encode("UTF-16LE").bytes
=> [97, 0, 98, 0, 99, 0, 100, 0, 101, 0, 102, 0]
```
```
expected: /abcdef/
actual: warning: Skipping set of ruby2_keywords flag for a (method not defined in Ruby)\n".
```
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12396
Merged-By: XrXr
Diffstat (limited to 'error.c')
0 files changed, 0 insertions, 0 deletions