Project

General

Profile

Backport #1168

wrong result of File.extname for path contains a space just before the extension

Added by nobu (Nobuyoshi Nakada) over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
[ruby-dev:38044]

Description

=begin
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"
=end

Associated revisions

Revision b1e55e5b
Added by wyhaines (Kirk Haines) about 10 years ago

Fix for backport #1168 -- wrong result of File.extname for a path that contains a space before the extension.
Fix for backport #1975 -- the test suite for backport #1168 uses Dir.mktmpdir, which was backported into 1.8 HEAD and 1.8.7 in the past. This change for 1.8.6 doesn't break anything already existing in 1.8.6, and is a pure-ruby addition, so it was backported. See http://redmine.ruby-lang.org/issues/show/1975

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 59671
Added by Glass_saga (Masaki Matsushita) about 2 years ago

lib/csv.rb: refactor and optimize. This change
includes the patch from marshall-lee.
close #1168

Revision 59671
Added by glass about 2 years ago

lib/csv.rb: refactor and optimize. This change
includes the patch from marshall-lee.
close #1168

Revision 59671
Added by glass about 2 years ago

lib/csv.rb: refactor and optimize. This change
includes the patch from marshall-lee.
close #1168

History

#1

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r22393.
=end

#2

Updated by shyouhei (Shyouhei Urabe) over 10 years ago

  • Status changed from Closed to Open
  • Assignee changed from nobu (Nobuyoshi Nakada) to shyouhei (Shyouhei Urabe)

=begin

=end

#3

Updated by shyouhei (Shyouhei Urabe) over 10 years ago

  • Assignee changed from shyouhei (Shyouhei Urabe) to wyhaines (Kirk Haines)

=begin

=end

#4

Updated by wyhaines (Kirk Haines) about 10 years ago

  • Status changed from Open to Closed

=begin
Applied in changeset r24653.
=end

Also available in: Atom PDF