General

Profile

mjrzasa (Maciek Rząsa)

  • Login: mjrzasa
  • Registered on: 11/18/2022
  • Last sign in: 02/21/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

04/14/2025

06:42 PM Ruby Bug #20919: IO#seek and IO#pos= do not clear the character buffer in some cases while transcoding
Folks, could I ask for a review (and potential merge) on the fix of this issue https://github.com/ruby/ruby/pull/12714? mjrzasa (Maciek Rząsa)

02/28/2025

04:04 AM Ruby Bug #16145 (Closed): regexp match error if mixing /i, character classes, and utf8
Applied in changeset commit:git|a50fbc56a30a0665102781019029e9cf9ddb3576.
----------
Use mbuf instead of bitset for character class for small UTF. Fixes #16145
mjrzasa (Maciek Rząsa)
03:34 AM Ruby Revision a50fbc56 (git): Use mbuf instead of bitset for character class for small UTF. Fixes #16145
mjrzasa (Maciek Rząsa)
03:34 AM Ruby Revision 223f37c0 (git): Improve tests for small UTF regex with case fold.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> mjrzasa (Maciek Rząsa)

02/21/2025

08:20 AM Ruby Bug #16145: regexp match error if mixing /i, character classes, and utf8
Fix: https://github.com/ruby/ruby/pull/12787 mjrzasa (Maciek Rząsa)

02/11/2025

11:03 PM Ruby Bug #16145: regexp match error if mixing /i, character classes, and utf8
I've tested it for Polish letters, the bug appears only for `ó`, all other work OK:
```
pry(main)> ['ą', 'ę', 'ó', 'ś', 'ł', 'ć', 'ź', 'ż', 'ń'].map { [_1, _1.bytes, /[x#{_1}]/i.match?("qwer#{_1.capitalize}")] }
=> [["ą", [196, 133...
mjrzasa (Maciek Rząsa)

02/10/2025

09:24 PM Ruby Bug #20919: IO#seek and IO#pos= do not clear the character buffer in some cases while transcoding
I believe the fix is ready for review https://github.com/ruby/ruby/pull/12714
Some CI jobs were failing (WebAssembly/Cygwin) but the failures seem not to be related to my changes and they're inconsistent (after rebasing Cygwin passed an...
mjrzasa (Maciek Rząsa)

02/07/2025

11:22 PM Ruby Bug #20919: IO#seek and IO#pos= do not clear the character buffer in some cases while transcoding
I have a draft of a fix for this one https://github.com/ruby/ruby/pull/12714 mjrzasa (Maciek Rząsa)

02/05/2025

10:09 PM Ruby Bug #20919: IO#seek and IO#pos= do not clear the character buffer in some cases while transcoding
I rerun tests on 3.5.0 and it's indeed related to transcoding
```
puts "Hello dev-ruby! #{RUBY_VERSION}"
require 'tempfile'
Tempfile.open() do |f|
f.write('0123456789')
f.rewind
f.ungetc('a')
# Character buffer WILL NOT...
mjrzasa (Maciek Rząsa)
09:19 PM Ruby Bug #20919: IO#seek and IO#pos= do not clear the character buffer in some cases while transcoding
It works OK with StringIO (unsurprisingly)
```
StringIO.open() do |f|
f.write('0123456789')
f.rewind
f.ungetc('a')
# Character buffer WILL NOT be cleared
f.seek(2)
f.getc
end
# => "1"
```
mjrzasa (Maciek Rząsa)

Also available in: Atom