]> git.lyx.org Git - features.git/commit
Fix FileName::realPath() on Windows
authorEnrico Forestieri <forenr@lyx.org>
Sun, 23 Feb 2020 21:48:35 +0000 (22:48 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:52 +0000 (15:48 +0200)
commite2f50b4d13c55b67e8b84bb74f53574e750541a7
treee573ac05c1bd6da333af03d847cde8481a5ad7d3
parent02813113e27e9fade3ae1b5cd2f6fe56118c89f1
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