Actions
Bug #6500
closedFile#open with a ':binmode => true' opt
Description
Here's the problem, under Windows:
irb(main):001:0> f = File.open('x',binmode:true)
ArgumentError: both textmode and binmode specified
from (irb):1:in initialize' from (irb):1:in
open'
from (irb):1
from D:/prog/Ruby/bin/irb:12:in `'
Under Windows, if File#open has a ':binmode => true' opt, and without a mode string, it will raise such exception.
open('x','r',binmode:true) is OK
Under Linux, there is no such problem, File.open('x',binmode:true) is ok
Actions
Like0
Like0Like0Like0