diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 64c3c3fd45..1dc93c27de 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -4433,7 +4433,7 @@ wxStyledTextCtrl::DoLoadFile(const wxString& filename, int WXUNUSED(fileType)) if ( file.IsOpened() ) { wxString text; - if ( file.ReadAll(&text, *wxConvCurrent) ) + if ( file.ReadAll(&text, wxConvAuto()) ) { // Detect the EOL: we use just the first line because there is not // much we can do if the file uses inconsistent EOLs anyhow, we'd diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index f407276bbf..a635b561df 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -571,7 +571,7 @@ wxStyledTextCtrl::DoLoadFile(const wxString& filename, int WXUNUSED(fileType)) if ( file.IsOpened() ) { wxString text; - if ( file.ReadAll(&text, *wxConvCurrent) ) + if ( file.ReadAll(&text, wxConvAuto()) ) { // Detect the EOL: we use just the first line because there is not // much we can do if the file uses inconsistent EOLs anyhow, we'd