Ticket #11487 (closed defect: fixed)
TestDateParse fail due to ParseDate()
| Reported by: | kcwu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.1 |
| Component: | base | Version: | |
| Keywords: | wxStrchr wxUniChar | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
Fix TestDateParse fail due to ParseDate().
"21 Mar 2006" will be translated as text with Chinese characters on Chinese version windows.
Inside wxStrchr() it will trigger assertion fail because it try to convert non-ascii character to char.
This is because
wxStrchr(const char *s, const wxUniChar& c)
will call
wxCRT_StrchrA()
This patch use
wxStrchr(const wchar_t *s, const wxUniChar& c)
instead.
The other possible fix is change
wxStrchr(const char *s, const wxUniChar& c)
to call
wxCRT_StrchrW()
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

