]> git.saurik.com Git - wxWidgets.git/commitdiff
normalize the case of the volume names too (patch 925887)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Apr 2004 22:15:02 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Apr 2004 22:15:02 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 0659a8b565749e16a65c9cdee72522d8ef9c941e..5bebeedae0ff0eb549e2c5686a70204d8bd0164b 100644 (file)
@@ -961,6 +961,7 @@ bool wxFileName::Normalize(int flags,
     {
         // VZ: expand env vars here too?
 
+        m_volume.MakeLower();
         m_name.MakeLower();
         m_ext.MakeLower();
     }
@@ -1141,8 +1142,8 @@ bool wxFileName::SameAs(const wxFileName& filepath, wxPathFormat format) const
 
     // get cwd only once - small time saving
     wxString cwd = wxGetCwd();
-    fn1.Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_CASE, cwd, format);
-    fn2.Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_CASE, cwd, format);
+    fn1.Normalize(wxPATH_NORM_ALL wxPATH_NORM_CASE, cwd, format);
+    fn2.Normalize(wxPATH_NORM_ALL wxPATH_NORM_CASE, cwd, format);
 
     if ( fn1.GetFullPath() == fn2.GetFullPath() )
         return true;