mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
instead of typoed regexp. [ruby-core:41829] [Bug #5817] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
63783f2c97
commit
31b097cad2
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 28 11:22:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
|
||||
instead of typoed regexp. [ruby-core:41829] [Bug #5817]
|
||||
|
||||
Fri Jul 1 06:41:36 2011 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* thread.c (rb_threadptr_check_signal): only wake up main thread.
|
||||
|
|
|
@ -1182,7 +1182,7 @@ module FileUtils
|
|||
|
||||
def entries
|
||||
opts = {}
|
||||
opts[:encoding] = "UTF-8" if /mswin|mignw/ =~ RUBY_PLATFORM
|
||||
opts[:encoding] = ::Encoding::UTF_8 if fu_windows?
|
||||
Dir.entries(path(), opts)\
|
||||
.reject {|n| n == '.' or n == '..' }\
|
||||
.map {|n| Entry_.new(prefix(), join(rel(), n.untaint)) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue