itarato (Peter Arato)
- Login: itarato
- Registered on: 05/17/2023
- Last sign in: 03/14/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 4 | 5 |
Activity
07/08/2023
-
02:53 PM Ruby Bug #19763 (Closed): Inconsistent error message for String#index vs String#rindex
- `String#index` and `String#rindex` yields different error messages when used with a `Regexp` argument:
```ruby
'abc'.force_encoding("ISO-2022-JP").index(/わ/)
```
Prints: `incompatible character encodings: ISO-2022-JP and UTF-8 (E...
06/30/2023
-
02:40 PM Ruby Bug #19749: Confirm correct behaviour when attaching private method with `#define_method`
- For visibility leaving the examples here that we suspect a CRuby bug:
```ruby
class Foo5
private
def bar; end
public
define_method(:bar, Foo5.instance_method(:bar))
end
Foo5.new.bar # NoMethodError in CRuby, but should be public...
06/28/2023
-
01:40 PM Ruby Bug #19749 (Closed): Confirm correct behaviour when attaching private method with `#define_method`
- This issue is a special case of https://bugs.ruby-lang.org/issues/19745:
Should dynamically added private methods via `.singleton_class.send(:define_method,...` at the top-level be accessible publicly?
See the following example:
...
06/27/2023
-
03:46 PM Ruby Bug #19745 (Closed): Confirm correct behaviour when attaching private method with `#define_singleton_method`
- Should dynamically added private methods be accessible publicly?
See the following example?
```ruby
private def bar; end
foo = Object.new
foo.define_singleton_method(:bar, method(:bar))
foo.bar # No error.
```
The scrip...
06/17/2023
-
06:48 AM Ruby Bug #19732 (Closed): Possible missing header (stdint.h) in event.h
- Applied in changeset commit:git|b943e9c7b9d9cc8ba4bbf043414ab1ed4e1a8b5f.
----------
Fixes [Bug #19732]. Add missing stdint.h header to event.h. -
06:48 AM Ruby Revision b943e9c7 (git): Fixes [Bug #19732]. Add missing stdint.h header to event.h.
06/16/2023
-
12:55 PM Ruby Bug #19732: Possible missing header (stdint.h) in event.h
- Thanks for pointing that out. Updated the PR (https://github.com/ruby/ruby/pull/7945) with those adjustments.
06/15/2023
-
08:24 PM Ruby Bug #19732: Possible missing header (stdint.h) in event.h
- While preparing that diff I realized what happened. I'm using `clang-format` which sorts includes and ordered https://github.com/banister/debug_inspector/blob/5424c4094df30adfecd961a4e77d95f1fea9bc48/ext/debug_inspector/debug_inspector.c...
06/14/2023
-
05:11 PM Ruby Bug #19732 (Closed): Possible missing header (stdint.h) in event.h
- Ruby's event.h (https://github.com/ruby/ruby/blob/813a5f4fc46a24ca1695d23c159250b9e1080ac7/include/ruby/internal/event.h#L103) is using type aliases from stdint.h, however it's not directly included.
An example where this causes issue...
06/05/2023
-
03:07 PM Ruby Feature #19712 (Open): IO#reopen removes singleton class
- The documentation states:
> This may dynamically change the actual class of this stream.
As well `#reopen` removes the singleton class, even when the logical class is the same. This can be surprising at times.
An example:
```...