[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59287] Functions shouldn't use `glob` on Wind
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #59287] Functions shouldn't use `glob` on Windows |
Date: |
Sat, 17 Oct 2020 10:27:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36 Edg/86.0.622.43 |
URL:
<https://savannah.gnu.org/bugs/?59287>
Summary: Functions shouldn't use `glob` on Windows
Project: GNU Octave
Submitted by: mmuetzel
Submitted on: Sat 17 Oct 2020 04:27:06 PM CEST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
In bug #59231, it turned out that `glob` doesn't work with non-ASCII
characters in directory or file names on Windows.
There was also a report on the discourse forum which might have been caused by
this issue. [1]
Since we are using functions provided by gnulib to get `glob` on Windows and
gnulib uses the ANSI API on that platform, the only way to fix that would be
to re-implement `glob` on Windows using its Unicode API. Imho, this is out of
scope of a project like Octave.
On the other hand, `__wglob__` will be working with non-ASCII characters in
Octave 7.
So until `glob` is fixed upstream (which I doubt will happen in the
foreseeable future), the next best solution would imho be to use `__wglob__`
on Windows.
For completeness: The difference between `glob` and `__wglob__` is that
`__wglob__` only supports the wildcards "*" and "?" (not patterns like
"[abc]").
.m file functions that are currently using "glob" are:
* copyfile.m
* fileattrib.m
* movefile.m
* unpack.m
* pkg/private/rebuild.m
[1]: https://octave.discourse.group/t/pkg-installation/316
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59287>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #59287] Functions shouldn't use `glob` on Windows,
Markus Mützel <=