Huw Davies : gdi32/tests: Fix Courier test on Arabic locales.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 18 07:55:03 CDT 2015


Module: wine
Branch: master
Commit: 002cf965e16c296f4c928f42c752ef0ad652b6fc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=002cf965e16c296f4c928f42c752ef0ad652b6fc

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Jun 18 09:45:35 2015 +0100

gdi32/tests: Fix Courier test on Arabic locales.

---

 dlls/gdi32/tests/font.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 5388df1..a590ce8 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -5704,9 +5704,11 @@ static void test_stock_fonts(void)
     {
         int charset, weight, height, height_pixels, dpi;
         const char face_name[LF_FACESIZE];
+        WORD lang_id;
     } td[][11] =
     {
         { /* ANSI_FIXED_FONT */
+            { ANSI_CHARSET, FW_NORMAL, 12, 12, 96, "Courier", LANG_ARABIC },
             { DEFAULT_CHARSET, FW_NORMAL, 12, 13, 96, "Courier" },
             { DEFAULT_CHARSET, FW_NORMAL, 12, 13, 120, "Courier" },
             { 0 }
@@ -5769,7 +5771,8 @@ static void test_stock_fonts(void)
 
         for (j = 0; td[i][j].face_name[0] != 0; j++)
         {
-            if (lf.lfCharSet != td[i][j].charset && td[i][j].charset != DEFAULT_CHARSET)
+            if ((lf.lfCharSet != td[i][j].charset && td[i][j].charset != DEFAULT_CHARSET) ||
+                (system_lang_id != td[i][j].lang_id && td[i][j].lang_id != LANG_NEUTRAL))
             {
                 continue;
             }




More information about the wine-cvs mailing list