[cmake-commits] hoffman committed SystemTools.cxx 1.157.2.14 1.157.2.15

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jun 6 10:41:13 EDT 2007


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv14058/Source/kwsys

Modified Files:
      Tag: CMake-2-4
	SystemTools.cxx 
Log Message:
ENH: move to RC 10


Index: SystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemTools.cxx,v
retrieving revision 1.157.2.14
retrieving revision 1.157.2.15
diff -u -d -r1.157.2.14 -r1.157.2.15
--- SystemTools.cxx	28 May 2007 14:07:04 -0000	1.157.2.14
+++ SystemTools.cxx	6 Jun 2007 14:41:10 -0000	1.157.2.15
@@ -125,6 +125,11 @@
     fprintf(stderr, "No current working directory.\n");
     abort();
     }
+  // make sure the drive letter is capital
+  if(strlen(buf) > 1 && buf[1] == ':')
+    {
+    buf[0] = toupper(buf[0]);
+    }
   return ret;
 }
 inline int Chdir(const char* dir)
@@ -2842,6 +2847,11 @@
     {
     return p;
     }
+  // make sure drive letter is always upper case
+  if(longPath.size() > 1 && longPath[1] == ':')
+    {
+    longPath[0] = toupper(longPath[0]);
+    }
   return longPath;
 #endif  
 }



More information about the Cmake-commits mailing list