#if (defined(__VISUALC__) && (__VISUALC__ >= 1300)) || \
(defined(__GNUC__) && (__GNUC__ >= 3))
#define wxHAVE_U_ESCAPE
+
+ // and disable warning that using them results in with MSVC 8+
+ #if wxCHECK_VISUALC_VERSION(8)
+ // universal-character-name encountered in source
+ #pragma warning(disable:4428)
+ #endif
#endif
// thrown when assert fails in debug build
extern void SetProcessEventFunc(ProcessEventFunc func);
extern bool IsNetworkAvailable();
+
+// helper class setting the locale to "C" for its lifetime
+class CLocaleSetter
+{
+public:
+ CLocaleSetter() : m_locOld(setlocale(LC_ALL, "C")) { }
+ ~CLocaleSetter() { setlocale(LC_ALL, m_locOld); }
+
+private:
+ const char * const m_locOld;
+ wxDECLARE_NO_COPY_CLASS(CLocaleSetter);
+};