General

Profile

gettalong (Thomas Leitner)

  • Login: gettalong
  • Email: t_leitner@gmx.at
  • Registered on: 11/07/2008
  • Last sign in: 12/25/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 6 7

Activity

09/11/2024

09:20 AM Ruby Feature #20594: A new String method to append bytes while preserving encoding
Dan0042 (Daniel DeLorme) wrote in #note-31:
> Ironically, HexaPDF now uses an explicit modulo 256, so it would actually be fine if #setbyte raised an out-of-bound error.
> ...
Yes, as mentioned in the linked issue #15460 I implemented ...
gettalong (Thomas Leitner)

05/24/2024

09:33 PM Ruby Misc #20509 (Open): Document importance of #to_ary and #to_hash for Array#== and Hash#==
Both `Array#==` and `Hash#==` provide special behaviour in case the `other` argument is not an Array/Hash but defines the special `#to_ary`/`#to_hash` methods. Those methods are never called, they are just checked for existence. And if t... gettalong (Thomas Leitner)

05/19/2024

11:59 AM Ruby Bug #20496 (Closed): Segfault when enabling YJIT
I installed Ruby 3.4-dev via rbenv to see how the improvements in YJIT with 3.4-dev (after reading https://speakerdeck.com/k0kubun/rubykaigi-2024) translate to other parts of HexaPDF. However, when running the HexaPDF optimization benchm... gettalong (Thomas Leitner)

12/17/2019

04:19 AM Ruby Revision a1713bed (git): [ruby/reline] Implement completion_append_character
There is already the possibility to set Reline.completion_append_character.
However, it is not used by the line editor.
https://github.com/ruby/reline/commit/ab798931b9
gettalong (Thomas Leitner)

12/28/2018

08:32 AM Ruby Bug #15460: Behaviour of String#setbyte changed
Eregon (Benoit Daloze) wrote:
> Why are values higher in HexaPDF? Does it mean multiple bytes need to be written or is it enough to throw away the high bits?
> ...
This actually happens in the predictor filter of HexaPDF (see https://g...
gettalong (Thomas Leitner)

12/25/2018

10:22 AM Ruby Bug #15460 (Closed): Behaviour of String#setbyte changed
I just installed Ruby 2.6.0 for benchmarking reasons and found that the change [string.c: setbyte silently ignores upper bits](https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/65804) broke my library/application HexaPD... gettalong (Thomas Leitner)

05/11/2015

08:48 AM Ruby Bug #11132 (Closed): String#sub and character sequence \' in replacement string
Hi,
I don't know if this is intentional but substitution of `\'` and `` \` `` in the replacement string was rather unexpected for me:
~~~
2.2.2 :001 > "this is a test".sub(/this/, "some text \\'")
=> "some text is a test is a t...
gettalong (Thomas Leitner)

03/02/2015

05:25 PM Ruby Bug #10928 (Closed): optparse Switch#summarize code doesn't reflect its documentation
The documentation for `Switch#summarize` says "+sdone+:: Already summarized short style options keyed hash." for the `sdone` argument (similar problem with `ldone`). I.e. it mentions it should be a Hash.
However, the actual method de...
gettalong (Thomas Leitner)

03/10/2013

08:14 PM Ruby Bug #8006: Dir.glob behaves differently on 1.9.3 and 2.0
=begin
For your information, I have fixed this problem in my code, see the ((<commit on Github|URL:https://github.com/gettalong/webgen/commit/8c49da9143569c8b68d6172199e12a9b8274e5bd>)).
Would be good, though, to know whether this i...
gettalong (Thomas Leitner)

03/08/2013

08:15 PM Ruby Bug #8006: Dir.glob behaves differently on 1.9.3 and 2.0
=begin
After some more experimenting, it seems that the '**' operator doesn't act the same like in 1.9.3:
With Ruby 2.0.0-p0:
2.0.0p0 :017 > Dir.glob('data/webgen/basic_website_template/*/*', File::FNM_DOTMATCH|File::FNM_CASEF...
gettalong (Thomas Leitner)

Also available in: Atom