[ruby-core:64020] [ruby-trunk - Bug #10035] [Assigned] Find.find no longer accepts Pathname type as argument

From: naruse@...
Date: 2014-07-26 02:08:21 UTC
List: ruby-core #64020
Issue #10035 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Akira Tanaka

----------------------------------------
Bug #10035: Find.find no longer accepts Pathname type as argument
https://bugs.ruby-lang.org/issues/10035#change-48034

* Author: Herwin .
* Status: Assigned
* Priority: Normal
* Assignee: Akira Tanaka
* Category: lib
* Target version: 
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [i686-linux]
* Backport: 2.1: UNKNOWN
----------------------------------------
In 2.1, a check for encoding of the paths parameter has been added to File.find. This works perfectly well for String parameters, but this results in a NoMethodError when a Pathname parameter is given. In my opinion a Pathname is a better suitable type to feed to Find.find than a String.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next