Unicode compilation fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-12-09 15:58:32 +00:00
parent 6f3e46c204
commit b51abd7380
2 changed files with 3 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ void FileNameTestCase::TestConstruction()
// if the test is run from root directory or its direct subdirectory
CPPUNIT_ASSERT_MESSAGE
(
wxString::Format("Normalize(%s) failed", fni.fullname).c_str(),
(const char *)wxString::Format(_T("Normalize(%s) failed"), fni.fullname).mb_str(),
fn.Normalize(wxPATH_NORM_ALL, _T("/foo/bar/baz"), fni.format)
);
@@ -274,7 +274,7 @@ void FileNameTestCase::TestNormalize()
// be sure this normalization does not fail
CPPUNIT_ASSERT_MESSAGE
(
wxString::Format("Normalize(%s) failed", tests[i].original).c_str(),
(const char *)wxString::Format(_T("Normalize(%s) failed"), tests[i].original).mb_str(),
fn.Normalize(tests[i].flags, cwd, wxPATH_UNIX)
);

View File

@@ -253,7 +253,7 @@ void VsnprintfTestCase::S()
CMP3("abcde", "%.5s", wxT("abcdefghi"));
// do the same tests but with Unicode characters:
#if wxUSE_UNICODE
#if wxUSE_UNICODE && !defined(__VISUALC__) // FIXME: this doesn't compile with VC7
#define ALPHA "\x3B1"
#define BETA "\x3B2"
#define GAMMA "\x3B3"