Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/unix-adapter/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ static std::string convertPosixPathToWin(const std::string &path)
// MAX_PATH, but there's no way to query how large the new path is.
// Hopefully, this is large enough.
tmp = new char[MAX_PATH + path.size()];
cygwin_conv_to_win32_path(path.c_str(), tmp);
//cygwin_conv_to_win32_path(path.c_str(), tmp); // was deprecated and now removed
// I found the fix here: http://onelab.info/pipermail/gmsh/2018/012114.html
ssize_t size = cygwin_conv_path( CCP_POSIX_TO_WIN_A, path.c_str(), NULL, 0);
cygwin_conv_path( CCP_POSIX_TO_WIN_A, path.c_str(), tmp, size);
#endif
for (int i = 0; tmp[i] != '\0'; ++i) {
if (tmp[i] == '/')
Expand Down