Update of /cvsroot/mahogany/M/src/classes
In directory usw-pr-cvs1:/tmp/cvs-serv11325/src/classes

Modified Files:
        MessageView.cpp 
Log Message:
initial checkin of UTF-7 support

Index: MessageView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MessageView.cpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -b -u -2 -r1.76 -r1.77
--- MessageView.cpp     19 Mar 2002 01:43:44 -0000      1.76
+++ MessageView.cpp     16 Apr 2002 02:45:52 -0000      1.77
@@ -160,37 +160,4 @@
 }
 
-// convert a string in UTF-8 into the string in the current encoding: of
-// course, this doesn't work in general as Unicode is not representable as an 8
-// bit charset but it works in some common cases and is better than no UTF-8
-// support at all
-//
-// FIXME this won't be needed when full Unicode support is available
-static wxFontEncoding ConvertUnicodeToSystem(wxString *strUtf)
-{
-   CHECK( strUtf, wxFONTENCODING_SYSTEM,
-          "NULL string in ConvertUnicodeToSystem" );
-
-   if ( !strUtf->empty() )
-   {
-      wxString str(strUtf->wc_str(wxConvUTF8), wxConvLocal);
-      if ( str.empty() )
-      {
-         // conversion failed - use original text (and display incorrectly,
-         // unfortunately)
-         wxLogDebug("conversion from UTF-8 to default encoding failed");
-      }
-      else
-      {
-         *strUtf = str;
-      }
-   }
-
-#if wxUSE_INTL
-   return wxLocale::GetSystemEncoding();
-#else // !wxUSE_INTL
-   return wxFONTENCODING_ISO8859_1;
-#endif // wxUSE_INTL/!wxUSE_INTL
-}
-
 // ----------------------------------------------------------------------------
 // private classes


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to