From 48b19a3a759e85a7dfaad10f8b18e594447fbc36 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Jul 2013 05:15:28 +0000 Subject: dir.c: get rid of FindFirstFile bug * dir.c (do_stat): use rb_w32_ustati64() in win32.c to get rid of mysterious behavior of FindFirstFile() Windows API which treat "<" and ">" like as wildcard characters. [ruby-core:55764] [Bug #8597] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_dir.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index b3630bf033..d8e94727cd 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -213,4 +213,8 @@ class TestDir < Test::Unit::TestCase Dir.glob(File.join(@root, "**/")) end + def test_glob_metachar + bug8597 = '[ruby-core:55764] [Bug #8597]' + assert_empty(Dir.glob(File.join(@root, "<")), bug8597) + end end -- cgit v1.2.3