Accept '\r' as delimiter when parsing dates (bug #684617)

Backported from head


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-04-06 15:39:39 +00:00
parent bf9728b3d7
commit a5243c0dbe
2 changed files with 2 additions and 1 deletions

View File

@@ -181,6 +181,7 @@ All:
- fixed assert (and crash in debug) in wxFileConfigGroup::DeleteSubgroupByName
- fix for deleting entries at root level in wxFileConfig
- wxStopWatch::Start() didn't resume it contrary to the docs
- accept '\r' as delimiter when parsing dates
Unix (GUI):

View File

@@ -3237,7 +3237,7 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
// tokenize the string
size_t nPosCur = 0;
static const wxChar *dateDelimiters = _T(".,/-\t\n ");
static const wxChar *dateDelimiters = _T(".,/-\t\r\n ");
wxStringTokenizer tok(p, dateDelimiters);
while ( tok.HasMoreTokens() )
{