Revision: 7363
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7363&view=rev
Author:   vadz
Date:     2007-09-07 15:10:05 -0700 (Fri, 07 Sep 2007)

Log Message:
-----------
don't pass non-ASCII characters to iscntrl(), this results in an assert with 
MSVC CRT

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

Modified: trunk/M/src/mail/MimeDecode.cpp
===================================================================
--- trunk/M/src/mail/MimeDecode.cpp     2007-09-07 19:42:38 UTC (rev 7362)
+++ trunk/M/src/mail/MimeDecode.cpp     2007-09-07 22:10:05 UTC (rev 7363)
@@ -418,7 +418,7 @@
 // NB: we suppose that any special characters had been already escaped
 static inline bool NeedsEncodingInHeader(wxUChar c)
 {
-   return iscntrl(c) || c >= 127;
+   return  c >= 127 || iscntrl(c);
 }
 
 // return true if the string contains any characters which must be encoded


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to