X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d84348c5a3e24919d9862bf0c8ad0a4fbf39d41..75f9a954480942d56202ac08274bf1b23141078d:/src/stc/stc.cpp 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