till now i found only one unicode / ansi bug in the CB source in cbexception.h
Index: D:/devel/CodeBlocks/trunk_ansi/src/sdk/cbexception.h
===================================================================
--- D:/devel/CodeBlocks/trunk_ansi/src/sdk/cbexception.h (revision 2971)
+++ D:/devel/CodeBlocks/trunk_ansi/src/sdk/cbexception.h (working copy)
@@ -31,7 +31,7 @@
int Line; ///< The line in the file where the exception was raised.
};
-#ifdef wxUSE_UNICODE
+#if wxUSE_UNICODE
#define cbThrow(message) throw cbException(message, cbC2U(__FILE__), __LINE__)
#else
#define cbThrow(message) throw cbException(message, __FILE__, __LINE__)
@@ -50,14 +50,14 @@
#define DIE() kill(0, SIGTERM)
#endif
- #ifdef wxUSE_UNICODE
+ #if wxUSE_UNICODE
#define cbAssertMessage(expr) \
wxString err; \
err.Printf(_T("Assertion failed in %s at %s:%d.\n\n%s"), cbC2U(__PRETTY_FUNCTION__).c_str(), cbC2U(__FILE__).c_str(), __LINE__, cbC2U(#expr).c_str());
#else
#define cbAssertMessage(expr) \
wxString err; \
- err.Printf(_T("Assertion failed in %s at %s:%d.\n\n%s"), __PRETTY_FUNCTION__.c_str(), __FILE__.c_str(), __LINE__, #expr.c_str());
+ err.Printf(_T("Assertion failed in %s at %s:%d.\n\n%s"), __PRETTY_FUNCTION__, __FILE__, __LINE__, #expr);
#endif
// non-fatal assertion
wxUSE_UNICODE is always defined, therefore it has to be checked with
and not with
but it doesn't solve the crash :(
any other ideas ??