Fix unicode build on UNIX operating systems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -913,7 +913,7 @@ wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin)
|
||||
// get OS version
|
||||
int major, minor;
|
||||
wxString release = wxGetCommandOutput(wxT("uname -r"));
|
||||
if ( !release.empty() && wxSscanf(release, "%d.%d", &major, &minor) != 2 )
|
||||
if ( !release.empty() && wxSscanf(release, wxT("%d.%d"), &major, &minor) != 2 )
|
||||
{
|
||||
// unrecognized uname string format
|
||||
major =
|
||||
|
Reference in New Issue
Block a user