Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20191/src/gui
Modified Files:
wxMApp.cpp
Log Message:
warn if locale is not UTF-8 under GTK+ 2 on startup (this is temporary, we need
to set locale to UTF-8 ourselves instead of asking the user to do it)
Index: wxMApp.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMApp.cpp,v
retrieving revision 1.307
retrieving revision 1.308
diff -b -u -2 -r1.307 -r1.308
--- wxMApp.cpp 20 Aug 2006 20:21:49 -0000 1.307
+++ wxMApp.cpp 22 Aug 2006 11:08:38 -0000 1.308
@@ -1103,4 +1103,22 @@
#endif // USE_I18N
+#ifdef __WXGTK20__
+ // we need UTF-8 support to be able to work with messages in different
+ // encodings
+ if ( wxLocale::GetSystemEncoding() != wxFONTENCODING_UTF8 )
+ {
+ // TODO: set encoding to UTF-8 (but keeping the current language)
+ // ourselves
+ wxLogWarning(_("Your current locale doesn't use UTF-8 encoding!\n"
+ "\n"
+ "This means that Mahogany will not be able to work "
+ "with texts in encodings other than the default one\n"
+ "which may result in messages not being displayed or "
+ "even sent correctly.\n"
+ "\n"
+ "Please change the system locale to UTF-8."));
+ }
+#endif // GTK+ 2.0
+
wxInitAllImageHandlers();
wxFileSystem::AddHandler(new wxMemoryFSHandler);
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates