diff --git a/docs/changes.txt b/docs/changes.txt index c56c914977..65a709bcf4 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -598,6 +598,7 @@ wxMSW: wxOSX: - Improve handling of keyboard entry using IME (minoki). +- Fix capturing non-ASCII output using wxExecute(). - Fix column sorting UI in wxDataViewCtrl (Myrsloik). diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 6c597072a9..b70f18f5a2 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -630,7 +630,10 @@ static bool ReadAll(wxInputStream *is, wxArrayString& output) // the stream could be already at EOF or in wxSTREAM_BROKEN_PIPE state is->Reset(); - wxTextInputStream tis(*is); + // Notice that wxTextInputStream doesn't work correctly with wxConvAuto + // currently, see #14720, so use the current locale conversion explicitly + // under assumption that any external program should be using it too. + wxTextInputStream tis(*is, " \t", wxConvLibc); for ( ;; ) {