# HG changeset patch # User Markus Mützel # Date 1660804857 -7200 # Node ID 6bcc5e6d77fef32f97ec341af9dd0aa0b741a1f4 # Parent bb9d776eafac742002f92df1c914b9a1d5f7504e unpack.m: Escape backslashes in paths on Windows (bug #62888). * scripts/miscalleneous/unpack.m: Escape backslashes in paths on Windows. That seems to be necessary to correctly handle double backslashes that prefix UNC paths. diff -r bb9d776eafac -r 6bcc5e6d77fe scripts/miscellaneous/unpack.m --- a/scripts/miscellaneous/unpack.m Sun Aug 14 18:24:07 2022 +0200 +++ b/scripts/miscellaneous/unpack.m Thu Aug 18 08:40:57 2022 +0200 @@ -271,6 +271,10 @@ unwind_protect unsetenv ("TAR_OPTIONS"); cd (dir); + if (ispc ()) + ## Escape backslashes (necessary for UNC paths). + file = strrep (file, '\', '\\'); + endif [status, output] = system (sprintf ([command " 2>&1"], file)); unwind_protect_cleanup cd (origdir);