From: "戈 吕" Date: 2009-06-16T16:15:17+09:00 Subject: [ruby-core:23872] [Bug #1641] File::SEPARATOR not platform-specific Bug #1641: File::SEPARATOR not platform-specific http://redmine.ruby-lang.org/issues/show/1641 Author: ��� ��� Status: Open, Priority: Normal ruby -v: 1.8.6p111 1.9.1p129 The default file path separator should be \ on Windows, but i got: >>> File::SEPARATOR #=> "/" Sometimes it is just fine to use '/', but there are problems: >>> system "explorer #{File.join "C:","Program Files"}" # doesn't work. >>> system "explorer C:\\Program Files" # works Currently I have to redefine File.join to avoid similar problems. But I think patching it will be quite helpful. ---------------------------------------- http://redmine.ruby-lang.org