Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27949/src/gui

Modified Files:
        wxComposeView.cpp 
Log Message:
changed default attachment regex to use \< instead of [[:<:]]; map the former 
to the latter when using wx built-in regex library

Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.404
retrieving revision 1.405
diff -b -u -2 -r1.404 -r1.405
--- wxComposeView.cpp   8 Apr 2006 21:14:30 -0000       1.404
+++ wxComposeView.cpp   9 Apr 2006 00:41:04 -0000       1.405
@@ -4165,5 +4165,14 @@
    }
 
-   const String reText = READ_CONFIG_TEXT(m_Profile, 
MP_CHECK_ATTACHMENTS_REGEX);
+   // wx built-in regex library only understands \< in BREs, not EREs, and
+   // insists on using [[:<:]] which is not supported by glibc so we try to
+   // make everybody happy at once by convertin one to the other as needed
+   String reText = READ_CONFIG_TEXT(m_Profile, MP_CHECK_ATTACHMENTS_REGEX);
+#ifdef wxHAS_REGEX_ADVANCED
+   // only built-in lib supports AREs
+   reText.Replace(_T("\\<"), _T("[[:<:]]"));
+   reText.Replace(_T("\\>"), _T("[[:>:]]"));
+#endif
+
    wxRegEx re(reText, wxRE_EXTENDED | wxRE_ICASE);
    if ( !re.IsValid() )



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to