[pkg-wine-party] [SCM] Debian Wine packaging branch, wheezy, updated. wine-1.4-7-302-gb61b690
Alexandre Julliard
julliard at winehq.org
Sun Jun 17 20:02:41 UTC 2012
The following commit has been merged in the wheezy branch:
commit 3d6abac44adc5668315e0451664ff5b7a3159ac3
Author: André Hentschel <nerv at dawncrow.de>
Date: Sun Mar 18 19:28:41 2012 +0100
kernel32: Handle LOCALE_NAME_USER_DEFAULT with tests.
(cherry picked from commit 21b6d994d2ebd09026208b04ea58e44f331f53a4)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 2c3760c..20451ff 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -976,6 +976,10 @@ LCID WINAPI LocaleNameToLCID( LPCWSTR name, DWORD flags )
if (flags) FIXME( "unsupported flags %x\n", flags );
+ if (name == LOCALE_NAME_USER_DEFAULT)
+ return GetUserDefaultLCID();
+
+ /* string parsing */
parse_locale_name( name, &locale_name );
TRACE( "found lcid %x for %s, matches %d\n",
diff --git a/include/winnls.h b/include/winnls.h
index de6f875..c7da119 100644
--- a/include/winnls.h
+++ b/include/winnls.h
@@ -321,6 +321,25 @@ extern "C" {
#define LOCALE_SSORTNAME 0x1013
#define LOCALE_IDIGITSUBSTITUTION 0x1014
+/* Locale name special values */
+#if defined(__GNUC__)
+# define LOCALE_NAME_INVARIANT (const WCHAR []){ 0 }
+#elif defined(_MSC_VER)
+# define LOCALE_NAME_INVARIANT L""
+#else
+static const WCHAR LOCALE_NAME_INVARIANT[] = { 0 };
+#endif
+
+#if defined(__GNUC__)
+# define LOCALE_NAME_SYSTEM_DEFAULT (const WCHAR []){'!','s','y','s','-','d','e','f','a','u','l','t','-','l','o','c','a','l','e',0}
+#elif defined(_MSC_VER)
+# define LOCALE_NAME_SYSTEM_DEFAULT L"!sys-default-locale"
+#else
+static const WCHAR LOCALE_NAME_SYSTEM_DEFAULT[] = {'!','s','y','s','-','d','e','f','a','u','l','t','-','l','o','c','a','l','e',0};
+#endif
+
+#define LOCALE_NAME_USER_DEFAULT NULL
+
#define LOCALE_IDEFAULTUNIXCODEPAGE 0x1030 /* Wine extension */
#define NORM_IGNORECASE 0x00001
diff --git a/include/winnt.h b/include/winnt.h
index fc471b8..5cde0f4 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -1985,6 +1985,7 @@ NTSYSAPI void WINAPI RtlCaptureContext(CONTEXT*);
#define LOCALE_CUSTOM_DEFAULT (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_CUSTOM_DEFAULT),SORT_DEFAULT))
#define LOCALE_CUSTOM_UNSPECIFIED (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_CUSTOM_UNSPECIFIED),SORT_DEFAULT))
#define LOCALE_CUSTOM_UI_DEFAULT (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_UI_CUSTOM_DEFAULT),SORT_DEFAULT))
+#define LOCALE_NAME_MAX_LENGTH 85
#define UNREFERENCED_PARAMETER(u) (void)(u)
--
Debian Wine packaging
More information about the pkg-wine-party
mailing list