General

Profile

haines (Andrew Haines)

Issues

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

Activity

07/27/2021

12:25 AM Ruby Revision 705b1bde (git): [rubygems/rubygems] Fix interrupt handling in Bundler workers
The existing interrupt handling using `SharedHelpers.trap` fails when the previous
handler for a signal is not callable (for example, when it is the string "DEFAULT").
Instead, we now handle interrupts by aborting the process when worke...
haines (Andrew Haines)

06/02/2017

09:26 AM Ruby Bug #13616: Zlib::GzipReader#pos underflows after calling #ungetbyte or #ungetc at start of file
Here's an attempt at a patch to check if pos will be negative and handle that scenario accordingly. haines (Andrew Haines)

05/31/2017

05:48 PM Ruby Bug #13616 (Closed): Zlib::GzipReader#pos underflows after calling #ungetbyte or #ungetc at start of file
After calling `#ungetbyte` or `#ungetc` at the start of file, `Zlib::GzipReader#pos` should be negative. However, the calculation uses unsigned integers, and underflow occurs.
Instead of the expected -1, the below outputs 184467440737...
haines (Andrew Haines)

05/23/2017

10:43 AM Ruby Feature #13588: Add Encoding#min_char_size, #max_char_size, #minmax_char_size
phluid61 (Matthew Kerwin) wrote:
> I hope there are no encodings where valid characters might not be a multiple of the minimum size.
Me too :) it works for now... the only encodings on Ruby 2.4.1 with `min_enc_len` > 1 are UTF-16 and...
haines (Andrew Haines)
10:05 AM Ruby Feature #13588: Add Encoding#min_char_size, #max_char_size, #minmax_char_size
I'm implementing a tar archive reader that takes an arbitrary stream (`StringIO`, `File`, `Zlib::GzipReader`, ...) and yields the individual files in the archive. I'd like the yielded file reader to conform as closely as possible to the ... haines (Andrew Haines)

05/22/2017

12:10 PM Ruby Feature #13588 (Feedback): Add Encoding#min_char_size, #max_char_size, #minmax_char_size
When implementing an IO-like object, I'd like to handle encoding correctly. To do so, I need to know the minimum and maximum character sizes for the encoding of the stream I'm reading. However, I can't find a way to access this informati... haines (Andrew Haines)

Also available in: Atom