Bug #1168: wrong result of File.extname for path contains a space just
before the extension
http://redmine.ruby-lang.org/issues/show/1168
e$B5/I<<Te(B: Nobuyoshi N.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Nobuyoshi N., e$B%+%F%4%je(B: core, Target version:
1.9.1
ruby -v: ruby 1.9.2dev (2009-02-18 trunk 22392) [i386-cygwin]
http://pc11.2ch.net/test/read.cgi/tech/1233686068/380
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32]
irb(main):007:0> File.extname(“a.txt”)
=> “.txt”
irb(main):008:0> File.extname(“a .txt”)
=> “”
irb(main):009:0> File.extname(“a.txt .txt”)
=> “.txt .txt”