Mercurial > octave
comparison scripts/miscellaneous/unpack.m @ 29093:1c212b36a35e
Use "__wglob__" instead of "glob" on Windows (bug #59287).
* copyfile.m, fileattrib.m, movefile.m, unpack.m, pkg/private/rebuild.m: On
Windows, gnulib's "glob" replacement doesn't work with non-ASCII characters
in the file path or name. Use "__wglob__" instead on that platform.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 23 Nov 2020 17:33:56 +0100 |
parents | 90fea9cc9caa |
children | 7854d5752dd2 |
comparison
equal
deleted
inserted
replaced
29092:38e22065d9ec | 29093:1c212b36a35e |
---|---|
91 file = cellstr (file); | 91 file = cellstr (file); |
92 endif | 92 endif |
93 if (numel (file) == 1) | 93 if (numel (file) == 1) |
94 ## FIXME: The code below is not a perfect test for a URL | 94 ## FIXME: The code below is not a perfect test for a URL |
95 if (isempty (strfind (file{1}, "://"))) | 95 if (isempty (strfind (file{1}, "://"))) |
96 gfile = glob (file); | 96 if (ispc ()) |
97 gfile = __wglob__ (file); | |
98 else | |
99 gfile = glob (file); | |
100 endif | |
97 if (isempty (gfile)) | 101 if (isempty (gfile)) |
98 error ('unpack: FILE "%s" not found', file{1}); | 102 error ('unpack: FILE "%s" not found', file{1}); |
99 else | 103 else |
100 file = gfile; | 104 file = gfile; |
101 endif | 105 endif |