|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #56267] addpath() on Windows fails to recognize same subdirs with different fileseps and case |
Date: | Tue, 12 Nov 2019 15:59:56 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0 |
Follow-up Comment #21, bug #56267 (project octave): I used the prefix "\\?\" to remove the MAX_PATH limitation [1]. However, this seems to work with absolute paths only. The following change should fix it: diff -r e8e7ec705418 liboctave/util/kpse.cc --- a/liboctave/util/kpse.cc Wed Nov 06 20:07:55 2019 +0100 +++ b/liboctave/util/kpse.cc Tue Nov 12 21:58:14 2019 +0100 @@ -169,7 +169,7 @@ { #if defined (OCTAVE_USE_WINDOWS_API) - std::wstring w_fn = L"\\\\?\\" + octave::sys::u8_to_wstring (fn); + std::wstring w_fn = octave::sys::u8_to_wstring (fn); DWORD f_attr = GetFileAttributesW (w_fn.c_str ()); I'll try to cross-build before I commit. [1]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfileattributesa _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56267> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |