Merge remote-tracking branch 'origin/master' into windows
[scilab.git] / scilab / modules / hdf5 / sci_gateway / cpp / sci_hdf5_file_version.cpp
index 38d7e92..975b02b 100644 (file)
@@ -47,10 +47,8 @@ types::Function::ReturnValue sci_hdf5_file_version(types::typed_list &in, int _i
         return types::Function::Error;
     }
 
-    wchar_t* wfilename = expandPathVariableW(in[0]->getAs<types::String>()->get()[0]);
-    char* cfilename = wide_string_to_UTF8(wfilename);
+    char* cfilename = expandPathVariable(in[0]->getAs<types::String>()->get()[0]);
     std::string filename = cfilename;
-    FREE(wfilename);
     FREE(cfilename);
 
     int iFile = openHDF5File(filename.data(), 0);