[前][次][番号順一覧][スレッド一覧]

ruby-changes:6401

From: nobu <ko1@a...>
Date: Mon, 7 Jul 2008 01:25:16 +0900 (JST)
Subject: [ruby-changes:6401] Ruby:r17916 (trunk, ruby_1_8): * file.c (rb_file_s_extname): fix for file name with spaces.

nobu	2008-07-07 01:24:45 +0900 (Mon, 07 Jul 2008)

  New Revision: 17916

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/file.c
    trunk/ChangeLog
    trunk/file.c

  Log:
    * file.c (rb_file_s_extname): fix for file name with spaces.
      [ruby-talk:307404]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17916

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 17915)
+++ ChangeLog	(revision 17916)
@@ -1,3 +1,8 @@
+Mon Jul  7 01:24:43 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* thread_pthread.c (ruby_init_stack): prior STACK_END_ADDRESS if
Index: file.c
===================================================================
--- file.c	(revision 17915)
+++ file.c	(revision 17916)
@@ -3123,7 +3123,7 @@
 		p = last;
 		break;
 	    }
-	    e = dot;
+	    if (*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 17915)
+++ ruby_1_8/ChangeLog	(revision 17916)
@@ -1,3 +1,8 @@
+Mon Jul  7 01:24:43 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* file.c (rb_file_s_extname): fix for file name with spaces.
+	  [ruby-talk:307404]
+
 Sun Jul  6 01:44:46 2008  Tanaka Akira  <akr@f...>
 
 	* Makefile.in (update-rubyspec): create intermediate directories
Index: ruby_1_8/file.c
===================================================================
--- ruby_1_8/file.c	(revision 17915)
+++ ruby_1_8/file.c	(revision 17916)
@@ -3044,7 +3044,7 @@
 		p = last;
 		break;
 	    }
-	    e = dot;
+	    if (*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/

[前][次][番号順一覧][スレッド一覧]