ruby-changes:10824
From: nobu <ko1@a...>
Date: Wed, 18 Feb 2009 12:35:47 +0900 (JST)
Subject: [ruby-changes:10824] Ruby:r22393 (trunk, ruby_1_8): * file.c (rb_file_s_extname): fix for spaces before extention.
nobu 2009-02-18 12:35:34 +0900 (Wed, 18 Feb 2009) New Revision: 22393 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22393 Log: * file.c (rb_file_s_extname): fix for spaces before extention. [ruby-dev:38044] Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/file.c trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 22392) +++ ChangeLog (revision 22393) @@ -1,3 +1,8 @@ +Wed Feb 18 12:35:31 2009 Nobuyoshi Nakada <nobu@r...> + + * file.c (rb_file_s_extname): fix for spaces before extention. + [ruby-dev:38044] + Wed Feb 18 12:00:58 2009 Nobuyoshi Nakada <nobu@r...> * file.c (file_expand_path): suppress a warning. named magic Index: file.c =================================================================== --- file.c (revision 22392) +++ file.c (revision 22393) @@ -3185,7 +3185,7 @@ p = last; break; } - if (*last == '.') e = dot; + if (*last == '.' || dot > last) e = dot; continue; #else e = p; /* get the last dot of the last component */ Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 22392) +++ ruby_1_8/ChangeLog (revision 22393) @@ -1,3 +1,8 @@ +Wed Feb 18 12:35:31 2009 Nobuyoshi Nakada <nobu@r...> + + * file.c (rb_file_s_extname): fix for spaces before extention. + [ruby-dev:38044] + Wed Feb 18 12:00:58 2009 Nobuyoshi Nakada <nobu@r...> * file.c (file_expand_path): suppress a warning. named magic Index: ruby_1_8/file.c =================================================================== --- ruby_1_8/file.c (revision 22392) +++ ruby_1_8/file.c (revision 22393) @@ -3038,7 +3038,7 @@ p = last; break; } - if (*last == '.') e = dot; + if (*last == '.' || dot > last) e = dot; continue; #else e = p; /* get the last dot of the last component */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/