=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: shlwapi/tests: Fix SHFormatDateTimeW tests for right-to-left locales.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 18 16:08:47 CDT 2014
Module: wine
Branch: master
Commit: badfdaf56c446cb37305e9df101cb1d9411afe0a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=badfdaf56c446cb37305e9df101cb1d9411afe0a
Author: André Hentschel <nerv at dawncrow.de>
Date: Fri Aug 15 19:25:29 2014 +0200
shlwapi/tests: Fix SHFormatDateTimeW tests for right-to-left locales.
---
dlls/shlwapi/tests/ordinal.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c
index 531844f..cb90d31 100644
--- a/dlls/shlwapi/tests/ordinal.c
+++ b/dlls/shlwapi/tests/ordinal.c
@@ -1794,6 +1794,7 @@ static void test_SHFormatDateTimeW(void)
INT ret;
static const WCHAR spaceW[] = {' ',0};
#define UNICODE_LTR_MARK 0x200e
+#define UNICODE_RTL_MARK 0x200f
if(!pSHFormatDateTimeW)
{
@@ -1923,9 +1924,9 @@ if (0)
p2 = buff2;
while (*p2 != '\0')
{
- while (*p1 == UNICODE_LTR_MARK)
+ while (*p1 == UNICODE_LTR_MARK || *p1 == UNICODE_RTL_MARK)
p1++;
- while (*p2 == UNICODE_LTR_MARK)
+ while (*p2 == UNICODE_LTR_MARK || *p2 == UNICODE_RTL_MARK)
p2++;
p1++;
p2++;
@@ -1949,9 +1950,9 @@ if (0)
p2 = buff2;
while (*p2 != '\0')
{
- while (*p1 == UNICODE_LTR_MARK)
+ while (*p1 == UNICODE_LTR_MARK || *p1 == UNICODE_RTL_MARK)
p1++;
- while (*p2 == UNICODE_LTR_MARK)
+ while (*p2 == UNICODE_LTR_MARK || *p2 == UNICODE_RTL_MARK)
p2++;
p1++;
p2++;
More information about the wine-cvs
mailing list