General

Profile

brixen (Brian Shirai)

  • Login: brixen
  • Email: brixen@gmail.com
  • Registered on: 12/19/2008
  • Last sign in: 10/06/2015

Issues

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

Activity

12/23/2014

08:47 PM Ruby Bug #10638: Keyword Hash processing is inconsistent
Sorry, I had an old MRI version selected in chruby, this appears to work correctly on trunk. brixen (Brian Shirai)
08:32 PM Ruby Bug #10638 (Closed): Keyword Hash processing is inconsistent
An empty Hash passed to a method taking a keyword rest argument is not dup'd. A modification to the keyword rest Hash in the method modifies the object passed to the method.
This behavior differs from passing a non-empty Hash.
http...
brixen (Brian Shirai)

07/08/2014

09:55 PM Ruby Bug #10016 (Closed): Destructuring block arguments with a Hashable last element
The following code:
~~~ruby
# destructure_bug.rb
def m
x = Object.new
def x.to_hash() {x: 9} end
yield [1, 2, 3, x]
end
p m { |a, *b, c, **k| [a, b, c, k] }
~~~
gives:
~~~
$ ruby -v destructure_bug.rb
ruby 2.1....
brixen (Brian Shirai)

06/03/2014

03:48 PM Ruby Bug #9898 (Closed): Keyword argument oddities
Case 1: If a method takes a single argument, and the method is called with a keyword splat, the method receives the passed object, not the result of calling `#to_hash` on the object:
~~~ruby
# kw1.rb
def m(a) a end
o = Object.new
...
brixen (Brian Shirai)

05/06/2014

05:25 PM Ruby Bug #9810 (Closed): Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
The `Numeric#step` documentation states:
"If any of the arguments are floating point numbers, all are converted to floats..."
https://github.com/ruby/ruby/blob/trunk/numeric.c#L1921
Is the following code intended to be described...
brixen (Brian Shirai)

10/03/2013

02:26 AM Ruby Feature #8976: file-scope freeze_string directive
> It would be a very bad idea to have a directive that completely changes the meaning of code from one file to another.
For consistency sake, it should be noted that, in fact, this is exactly what the existing encoding pragma does, an...
brixen (Brian Shirai)

09/24/2013

01:07 PM Ruby Bug #8945 (Closed): Unmarshaling an Array containing a Bignum from a tainted String returns a frozen, tainted Bignum
In 2.1, Symbol, Fixnum, Bignum, and Float (at least) have been changed to frozen by default. Consequently, calling #taint on an instance of those classes raises a RuntimeError because a frozen object cannot be modified to be tainted. How... brixen (Brian Shirai)

02/27/2013

10:38 AM Ruby Bug #7964: Writing an ASCII-8BIT String to a StringIO created from a UTF-8 String
Martin, what do you mean by: "However, the question is whether the resulting string should always be BINARY (exactly mirroring what happens with real IO)..."?
If StringIO is going to fake aliasing #pos across instances that have been ...
brixen (Brian Shirai)

02/26/2013

04:32 PM Ruby Bug #7964 (Assigned): Writing an ASCII-8BIT String to a StringIO created from a UTF-8 String
=begin
In the following script, an ASCII-8BIT String is written to a StringIO created with a UTF-8 String without error. However, a << b or a + b will raise an exception, as will writing an ASCII-8BIT String to a File with UTF-8 externa...
brixen (Brian Shirai)

02/21/2013

03:17 AM Ruby Bug #7200: Setting external encoding with BOM|
#set_encoding accepts ("bom|utf-16be:euc-jp") but rejects ("bom|utf-16be", "euc-jp"). This is inconsistent, confusing, and has nothing to do with the artificial mode vs encoding justification above. This inconsistency requires additional... brixen (Brian Shirai)

Also available in: Atom