diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-06 16:24:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-06 16:24:45 +0000 |
commit | 41948816524acce9efe1955c01bcd54625909270 (patch) | |
tree | 54b2d75b0531035befcb1a3892375e7d47c6168f | |
parent | 6e2e1af59517dfc0a56bd198f04fabb3121922f7 (diff) | |
download | ruby-41948816524acce9efe1955c01bcd54625909270.tar.gz ruby-41948816524acce9efe1955c01bcd54625909270.tar.xz ruby-41948816524acce9efe1955c01bcd54625909270.zip |
* file.c (rb_file_s_extname): fix for file name with spaces.
[ruby-talk:307404]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | file.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Jul 7 01:24:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * file.c (rb_file_s_extname): fix for file name with spaces. + [ruby-talk:307404] + Mon Jul 7 00:59:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * thread_pthread.c (ruby_init_stack): prior STACK_END_ADDRESS if @@ -3123,7 +3123,7 @@ rb_file_s_extname(VALUE klass, VALUE fname) p = last; break; } - e = dot; + if (*last == '.') e = dot; continue; #else e = p; /* get the last dot of the last component */ |