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:
parent
ac6e54eee6
commit
baed107708
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user