More Unicode stuff. Implemented wxFprintf.
Some printfs changed to wxPrintf, fprintf to wxFprintf, as well as the usual char->wxChar and _T(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -535,9 +535,9 @@ void wxLogGui::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
|
||||
OutputDebugString(wxString(szString) + _T("\n\r"));
|
||||
#else
|
||||
// send them to stderr
|
||||
fprintf(stderr, "%s: %s\n",
|
||||
level == wxLOG_Trace ? "Trace" : "Debug",
|
||||
(const char*)wxConv_libc.cWX2MB(szString));
|
||||
wxFprintf(stderr, _T("%s: %s\n"),
|
||||
level == wxLOG_Trace ? _T("Trace") : _T("Debug"),
|
||||
szString);
|
||||
fflush(stderr);
|
||||
#endif
|
||||
}
|
||||
@@ -1018,7 +1018,7 @@ void wxOnAssert(const char *szFile, int nLine, const wxChar *szMsg)
|
||||
// make life easier for people using VC++ IDE: clicking on the message
|
||||
// will take us immediately to the place of the failed assert
|
||||
#ifdef __VISUALC__
|
||||
sprintf(szBuf, _T("%s(%d): assert failed"), szFile, nLine);
|
||||
wxSprintf(szBuf, _T("%s(%d): assert failed"), szFile, nLine);
|
||||
#else // !VC++
|
||||
// make the error message more clear for all the others
|
||||
#ifdef wxSprintf
|
||||
|
Reference in New Issue
Block a user