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
This commit is contained in:
Julian Smart 2002-01-31 12:25:50 +00:00
parent ac6e54eee6
commit baed107708

View File

@ -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());