- sprintf(data, "Mac OS X (%s %s %s)", name.sysname, name.release, name.machine);
- return wxString(data, wxConvUTF8);
+ return wxString::Format(_T("Mac OS X (%s %s %s)"),
+ wxString::FromAscii(name.sysname).c_str(),
+ wxString::FromAscii(name.release).c_str(),
+ wxString::FromAscii(name.machine).c_str());