-
for instance the following regexps have UTF-8 encoding in CRuby:
```ruby
/\p{Arabic}/.encoding # => #
/\p{L}/.encoding # => #
```
but Prism sets the `forced_us_ascii_encoding` flag:
```
b…
-
> Character set escapes like \w match only ASCII characters whereas named character sets are Unicode aware. You can also use (?u) inline modifier to allow character set escapes to match Unicode charac…
noraj updated
2 years ago
-
The Nokogiri::HTML4::EncodingReader class is used to try to detect encoding of HTML4 documents when they have ambiguous encoding.
Recently, [a REDOS vulnerability was found in this code](https://gi…
-
```ruby
def foo1(&block)
block = proc {}
p block_given?
end
def foo2(&block)
block = nil
p block_given?
end
foo1
foo2 {}
```
Ruby prints `false` `true`, while mruby prints `true` `…
-
As of Timeout 0.3.0 you can no longer use `Timeout` in a signal trap handler due to `Mutex#synchronize` not being callable inside a trap context. I haven't done a git bisect but I believe this was bro…
-
This test needs to be updated to handle the Prism error format.
-
CRuby:
```
[2.6.0] > "💪\xFF".succ
=> "💫\xFF"
```
mruby built with `CFLAGS="-Wall -DMRB_UTF8_STRING" rake`:
```
mirb - Embeddable Interactive Ruby Shell
> "💪\xFF".succ
=> "\x01💪\x00"
…
-
In CRuby, the `verify_hostname` property of the ssl context is set to true on the first set_params call:
```ruby
# cruby 3.2
ctx = OpenSSL::SSL::SSLContext.new
ctx.verify_hostname #=> false
ctx…
-
@ioquatix is getting good results with async-http https://github.com/socketry/async-http.
It's 2019 and the JIT is Becoming a Thing in CRuby, which makes me think that the marginal gains of using …
-
I'm trying to introduce truffleruby in RailsEventStore ([again](https://github.com/RailsEventStore/rails_event_store/issues/419#issuecomment-779402997)). Which brought me to this observed difference:
…