shlwapi/tests: Don't assume date/time are separated by comma

Greg Geldorp ggeldorp at vmware.com
Fri Jan 14 05:32:45 CST 2011


The test assumed that date and time part were separated by ", ". However,
on Japanese machines, instead of a comma the IDEOGRAPHIC COMMA \u3001 is
used. So instead we just compare the beginning of the string returned by
SHFormatDateTimeW() against the expected date string and the end against
the expected time string. Things are complicated a bit by
SHFormatDateTimeW() inserting Left-To-Right marks in the date part of the
string on newer Windows versions which are note present in the expected
date string, so we have to compensate for that.

---
 dlls/shlwapi/tests/ordinal.c |   78
++++++++++++++++++++++++++++++------------
 1 files changed, 56 insertions(+), 22 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-shlwapi-tests-Don-t-assume-date-time-are-separated-b.patch
Type: text/x-patch
Size: 6163 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110114/f409cfd7/attachment.bin>


More information about the wine-patches mailing list