expandPathVariable must return 'longpathname version' of scilab variables 43/18943/1
Antoine ELIAS [Tue, 24 Jan 2017 15:35:07 +0000 (16:35 +0100)]
fix dirname tests in installed version on Windows

Change-Id: I471123699e76a4e826a09d130bce9e23187c871c

scilab/modules/fileio/src/cpp/expandPathVariable.cpp

index df6f718..b61d085 100644 (file)
@@ -163,8 +163,9 @@ wchar_t *getVariableValueDefinedInScilab(VARIABLEALIAS* _var)
             return NULL;
         }
 
+        BOOL bConvLong = FALSE;
         types::String* pS = pIT->getAs<types::String>();
-        return os_wcsdup(pS->get(0));
+        return getlongpathnameW( pS->get(0), &bConvLong);
     }
     return NULL;
 }