]> git.lyx.org Git - lyx.git/commit
Fix FileName::realPath() on Windows
authorEnrico Forestieri <forenr@lyx.org>
Sun, 23 Feb 2020 21:48:35 +0000 (22:48 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 23 Feb 2020 21:59:03 +0000 (22:59 +0100)
commit5873a382de44a7e3b608fdab7a5d44c9699ad3a8
tree43e4513822d6646905f9eadf763737a1b8c62ed0
parent0daceae649f9cf5633f06bb350f3309838a0a55f
Fix FileName::realPath() on Windows

The realPath() implementation on Windows works only for files and
not for directories. By using an API available starting from Vista
it is possible to fix it in a simple way.

I also took into account using the Qt QFileInfo::canonicalFilePath(),
but it turns out to not work when a path component is a junction
(tested with Qt 5.14.1).

Due to this, it is not possible compiling or using LyX on Windows
versions earlier than Vista.
README
src/support/os.cpp
src/support/os_win32.cpp
src/support/os_win32.h