]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textfile.cpp
Further fixes to references
[wxWidgets.git] / src / common / textfile.cpp
index 6a82fa5860640895107b6181fc6ced89e226c521..fd7b30c50e98b8610514a825b59e5e954b5afb06 100644 (file)
@@ -183,8 +183,12 @@ bool wxTextFile::OnRead(wxMBConv& conv)
 bool wxTextFile::OnWrite(wxTextFileType typeNew, wxMBConv& conv)
 {
     wxFileName fn = m_strBufferName;
 bool wxTextFile::OnWrite(wxTextFileType typeNew, wxMBConv& conv)
 {
     wxFileName fn = m_strBufferName;
+
+    // We do NOT want wxPATH_NORM_CASE here, or the case will not
+    // be preserved.
     if ( !fn.IsAbsolute() )
     if ( !fn.IsAbsolute() )
-        fn.Normalize();
+        fn.Normalize(wxPATH_NORM_ENV_VARS | wxPATH_NORM_DOTS | wxPATH_NORM_TILDE |
+                     wxPATH_NORM_ABSOLUTE | wxPATH_NORM_LONG);
 
     wxTempFile fileTmp(fn.GetFullPath());
 
 
     wxTempFile fileTmp(fn.GetFullPath());