[#68137] improve semantics of manpages — "Anthony J. Bentley" <anthony@...>
Hi,
1 message
2015/02/17
[#68144] Re: Future of test suites for Ruby — Anthony Crumley <anthony.crumley@...>
FYI...
4 messages
2015/02/17
[#68343] [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault? — ruby@...
Issue #10916 has been reported by why do i need this acct just to create a bug report.
5 messages
2015/02/27
[#68373] Re: [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault?
— "Martin J. Dürst" <duerst@...>
2015/03/02
> * Author: why do i need this acct just to create a bug report
[#68358] [Ruby trunk - Bug #10902] require("enumerator") scans LOAD_PATH 2x on every invocation — [email protected]
Issue #10902 has been updated by Aman Gupta.
3 messages
2015/02/28
[ruby-core:67956] [ruby-trunk - Bug #10815] Dir.foreach in block form does not allow encoding
From:
djberg96@...
Date:
2015-02-02 22:41:08 UTC
List:
ruby-core #67956
Issue #10815 has been updated by Daniel Berger.
Ok, but that seems a strange way to declare the function prototype. Compare that with Dir.entries, which does give you an error if you pass the wrong number of arguments.
----------------------------------------
Bug #10815: Dir.foreach in block form does not allow encoding
https://bugs.ruby-lang.org/issues/10815#change-51343
* Author: Daniel Berger
* Status: Rejected
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [i386-mswin32_120]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
It doesn't appear that Dir.foreach{} allows an encoding:
enc = Encoding::UTF_16LE
# Without a block, works ok
p Dir.foreach(Dir.pwd) # => Enumerator
p Dir.foreach(Dir.pwd, enc) # => Enumerator
# With a block, fails if more than 1 argument is passed
p Dir.foreach(Dir.pwd){ } # => nil
p Dir.foreach(Dir.pwd, enc){ } # => ArgumentError
--
https://bugs.ruby-lang.org/