Detlef Riekenberg : mlang: Use a case independent compare for the RFC1766 name.

Alexandre Julliard julliard at winehq.org
Wed May 27 09:26:55 CDT 2009


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

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Tue May 26 23:50:01 2009 +0200

mlang: Use a case independent compare for the RFC1766 name.

---

 dlls/mlang/mlang.c       |    2 +-
 dlls/mlang/tests/mlang.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c
index 14122c8..9cd9a87 100644
--- a/dlls/mlang/mlang.c
+++ b/dlls/mlang/mlang.c
@@ -1197,7 +1197,7 @@ static HRESULT lcid_from_rfc1766(IEnumRfc1766 *iface, LCID *lcid, LPCWSTR rfc176
 
     while (IEnumRfc1766_Next(iface, 1, &info, &num) == S_OK)
     {
-        if (!strcmpW(info.wszRfc1766, rfc1766))
+        if (!strcmpiW(info.wszRfc1766, rfc1766))
         {
             *lcid = info.lcid;
             return S_OK;
diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c
index b0b4743..fdff28c 100644
--- a/dlls/mlang/tests/mlang.c
+++ b/dlls/mlang/tests/mlang.c
@@ -62,6 +62,9 @@ static const lcid_table_entry  lcid_table[] = {
 
     {"en",    9,        S_OK},       /* only en is special (using PRIMARYLANGID) */
     {"en-gb", 0x809,    S_OK},
+    {"en-GB", 0x809,    S_OK},
+    {"EN-GB", 0x809,    S_OK},
+    {"en-US", 0x409,    S_OK},
     {"en-us", 0x409,    S_OK}
 
 };




More information about the wine-cvs mailing list