rb_str_enumerate_lines searches for the separator byte-wise. When a match turned out to start in the middle of a character, it moved the start of the current line past that character instead of only resuming the search there, so the tex...saddestmartian (sad mart)
$stdin can be any object, and ARGF forwards reads to it when it is not an IO. When ARGV contains "-", however, argf_next_argv() set the current file to $stdin and then used it as an IO: it called rb_io_ascii8bit_binmode() and GetOpenFil...saddestmartian (sad mart)
`Mutex#unlock`, `Queue#push` and `SizedQueue#pop` wake exactly one waiter. If that waiter then leaves without taking the resource, it does not pass the wakeup on, and the next waiter sleeps next to a free mutex, a queued item or a free s...saddestmartian (sad mart)
Since Ruby 4.0.0, if a non-blocking fiber in another thread is waiting on a `Thread::Mutex` through a fiber scheduler when the process forks, unlocking (or locking and unlocking) that mutex in the child aborts the child. ```ruby clas...saddestmartian (sad mart)
`String#each_line` and `String#lines` with a broken separator return lines that report `valid_encoding? == true` although they are not valid: ```ruby s = "あい"; s.valid_encoding? s.lines("\xE3") #=> ["\xE3", "...saddestmartian (sad mart)
`rb_match_init_copy` overwrites the receiver's registers but copies the character offsets cache only when the original has one, so a receiver that had already computed offsets keeps them: ```ruby m = /(b)/.match("ab"); m.offset(1) ...saddestmartian (sad mart)
`$stdin` can be any object, and ARGF reads through it when it is not an IO. When `ARGV` contains `"-"`, however, `argf_next_argv()` sets the current file to `$stdin` and then uses it as an IO (`rb_io_ascii8bit_binmode()`, `GetOpenFile()`...saddestmartian (sad mart)
`String#each_line` and `String#lines` with a separator drop the text before a byte match of the separator that falls inside a multibyte character: ```ruby s = "a\x83\x5Cb\\c".force_encoding("Shift_JIS") # "\x83\x5C" is one character...saddestmartian (sad mart)