]> git.saurik.com Git - wxWidgets.git/commit
Applied patch [ 601072 ] wxFileName::GetLongPath error & fix
authorJulian Smart <julian@anthemion.co.uk>
Sat, 31 Aug 2002 11:42:12 +0000 (11:42 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 31 Aug 2002 11:42:12 +0000 (11:42 +0000)
commitb5b62eea2d61deb499f24ed75ff1513975319bce
tree5b994da9260f56d6006c564a231177a02a1e10a0
parentaf49c4b8a2d3553e733e71c7dd3911881f4c1a2a
Applied patch [ 601072 ] wxFileName::GetLongPath error & fix
By Michael Fielding (mfielding)

When using wxFileName::MakeRelativeTo with a new base of "x:\", the result is incorrect. It works fine when there is a subdirectory after x:\. I tracked this to a bug in GetLongPath; here is the fix.

Also, GetLongPath will now try and get as much long path as it can, failing only when part of the path cannot be found. eg

x:\existi~1\file not existing.new becomes
x:\existing directory\filenotexisting.new

instead of just staying the same.

Also, MakeRelative no longer makes filenames lowercase when it normalises them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/filename.cpp