Revision: 7414
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7414&view=rev
Author:   vadz
Date:     2008-04-12 19:19:31 -0700 (Sat, 12 Apr 2008)

Log Message:
-----------
verify that wxString to 8 bit data conversion succeeds

Modified Paths:
--------------
    trunk/M/src/mail/MailFolderCC.cpp

Modified: trunk/M/src/mail/MailFolderCC.cpp
===================================================================
--- trunk/M/src/mail/MailFolderCC.cpp   2008-04-13 02:16:54 UTC (rev 7413)
+++ trunk/M/src/mail/MailFolderCC.cpp   2008-04-13 02:19:31 UTC (rev 7414)
@@ -2812,6 +2812,8 @@
    CHECK_DEAD_RC("Appending to closed folder '%s' failed.", false);
 
    wxCharBuffer msgbuf(msg.To8BitData());
+   CHECK( msgbuf, false, "message contains non-ASCII characters" );
+
    STRING str;
    INIT(&str, mail_string, msgbuf.data(), msg.length());
 
@@ -2859,6 +2861,8 @@
 
    // keep the char buffer alive until after mail_append_full() returns
    wxCharBuffer tmpbuf(tmp.To8BitData());
+   CHECK( tmpbuf, false, "message contains non-ASCII characters" );
+
    STRING str;
    INIT(&str, mail_string, tmpbuf.data(), tmp.length());
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to