This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  61a0fe4648d7e2c65c1fb62641f6c6e3dea2afb3 (commit)
       via  e06ea8373f434fa581cc7c88366fa483b741aebd (commit)
      from  2d83690fe2c785b5cda0fb6c0822b879071a649d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=61a0fe4648d7e2c65c1fb62641f6c6e3dea2afb3
commit 61a0fe4648d7e2c65c1fb62641f6c6e3dea2afb3
Merge: 2d83690 e06ea83
Author:     Clinton Stimpson <clin...@elemtech.com>
AuthorDate: Sat Aug 15 01:16:52 2015 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Sat Aug 15 01:16:52 2015 -0400

    Merge topic 'extended-length-paths' into next
    
    e06ea837 cmSystemTools: Use extended length paths for Windows apis.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e06ea8373f434fa581cc7c88366fa483b741aebd
commit e06ea8373f434fa581cc7c88366fa483b741aebd
Author:     Clinton Stimpson <clin...@elemtech.com>
AuthorDate: Fri Aug 14 23:14:06 2015 -0600
Commit:     Clinton Stimpson <clin...@elemtech.com>
CommitDate: Fri Aug 14 23:14:06 2015 -0600

    cmSystemTools: Use extended length paths for Windows apis.

diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 2543e68..a117238 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -950,8 +950,9 @@ bool cmSystemTools::RenameFile(const char* oldname, const 
char* newname)
      Try multiple times since we may be racing against another process
      creating/opening the destination file just before our MoveFileEx.  */
   WindowsFileRetry retry = cmSystemTools::GetWindowsFileRetry();
-  while(!MoveFileExW(cmsys::Encoding::ToWide(oldname).c_str(),
-                     cmsys::Encoding::ToWide(newname).c_str(),
+  while(!MoveFileExW(
+      SystemTools::ConvertToWindowsExtendedPath(oldname).c_str(),
+      SystemTools::ConvertToWindowsExtendedPath(newname).c_str(),
                      MOVEFILE_REPLACE_EXISTING) && --retry.Count)
     {
     DWORD last_error = GetLastError();
@@ -962,12 +963,14 @@ bool cmSystemTools::RenameFile(const char* oldname, const 
char* newname)
       return false;
       }
     DWORD attrs =
-      GetFileAttributesW(cmsys::Encoding::ToWide(newname).c_str());
+      GetFileAttributesW(
+        SystemTools::ConvertToWindowsExtendedPath(newname).c_str());
     if((attrs != INVALID_FILE_ATTRIBUTES) &&
        (attrs & FILE_ATTRIBUTE_READONLY))
       {
       // Remove the read-only attribute from the destination file.
-      SetFileAttributesW(cmsys::Encoding::ToWide(newname).c_str(),
+      SetFileAttributesW(
+        SystemTools::ConvertToWindowsExtendedPath(newname).c_str(),
                          attrs & ~FILE_ATTRIBUTE_READONLY);
       }
     else
@@ -1956,11 +1959,11 @@ bool cmSystemTools::CopyFileTime(const char* fromFile, 
const char* toFile)
 {
 #if defined(_WIN32) && !defined(__CYGWIN__)
   cmSystemToolsWindowsHandle hFrom =
-    CreateFileW(cmsys::Encoding::ToWide(fromFile).c_str(),
+    CreateFileW(SystemTools::ConvertToWindowsExtendedPath(fromFile).c_str(),
                 GENERIC_READ, FILE_SHARE_READ, 0,
                 OPEN_EXISTING, 0, 0);
   cmSystemToolsWindowsHandle hTo =
-    CreateFileW(cmsys::Encoding::ToWide(toFile).c_str(),
+    CreateFileW(SystemTools::ConvertToWindowsExtendedPath(toFile).c_str(),
                 GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0);
   if(!hFrom || !hTo)
     {
@@ -2012,7 +2015,7 @@ bool cmSystemTools::FileTimeGet(const char* fname, 
cmSystemToolsFileTime* t)
 {
 #if defined(_WIN32) && !defined(__CYGWIN__)
   cmSystemToolsWindowsHandle h =
-    CreateFileW(cmsys::Encoding::ToWide(fname).c_str(),
+    CreateFileW(SystemTools::ConvertToWindowsExtendedPath(fname).c_str(),
                 GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
   if(!h)
     {
@@ -2039,7 +2042,7 @@ bool cmSystemTools::FileTimeSet(const char* fname, 
cmSystemToolsFileTime* t)
 {
 #if defined(_WIN32) && !defined(__CYGWIN__)
   cmSystemToolsWindowsHandle h =
-    CreateFileW(cmsys::Encoding::ToWide(fname).c_str(),
+    CreateFileW(SystemTools::ConvertToWindowsExtendedPath(fname).c_str(),
                 GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0);
   if(!h)
     {

-----------------------------------------------------------------------

Summary of changes:
 Source/cmSystemTools.cxx |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits

Reply via email to