diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index b70f18f5a2..da02376e24 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -633,7 +633,11 @@ static bool ReadAll(wxInputStream *is, wxArrayString& output) // 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); + wxTextInputStream tis(*is, " \t" +#if wxUSE_UNICODE + , wxConvLibc +#endif + ); for ( ;; ) {