diff libinterp/corefcn/dirfns.cc @ 28869:4e64416772f1

Use Windows wide character API for __wglob__ (bug #59231). * liboctave/util/oct-glob.cc (windows_glob): Use wide character WinAPI functions (instead of gnulib functions) on Windows. * libinterp/corefcn/dirfns.cc (Fglob): Document that function won't work with non-ASCII characters on Windows.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 08 Oct 2020 16:13:20 +0200
parents ce660f584f00
children 61bdb3e2f6a1
line wrap: on
line diff
--- a/libinterp/corefcn/dirfns.cc	Thu Oct 08 16:07:39 2020 +0200
+++ b/libinterp/corefcn/dirfns.cc	Thu Oct 08 16:13:20 2020 +0200
@@ -514,13 +514,18 @@
         [2,1] = file2
       @}
 @end example
+
+Note: On Windows, patterns that contain non-ASCII characters are not
+supported.
+
 @seealso{ls, dir, readdir, what}
 @end deftypefn */)
 {
   if (args.length () != 1)
     print_usage ();
 
-  string_vector pat = args(0).xstring_vector_value ("glob: PATTERN must be a string");
+  string_vector pat
+    = args(0).xstring_vector_value ("glob: PATTERN must be a string");
 
   glob_match pattern (octave::sys::file_ops::tilde_expand (pat));