From baed10770806ddfd58eefce328d581bc0235f4fc Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 31 Jan 2002 12:25:50 +0000 Subject: [PATCH] Removed wxPATH_NORM_CASE from Normalize or files won't be written back as the same filename. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/textfile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index 6a82fa5860..ccf0545c70 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -183,8 +183,11 @@ bool wxTextFile::OnRead(wxMBConv& conv) 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() ) - fn.Normalize(); + fn.Normalize(wxPATH_NORM_ENV_VARS | wxPATH_NORM_DOTS | wxPATH_NORM_TILDE | wxPATH_NORM_ABSOLUTE | wxPATH_NORM_LONG); wxTempFile fileTmp(fn.GetFullPath());