summaryrefslogtreecommitdiff
path: root/src/utilcode
diff options
context:
space:
mode:
authorTarek Mahmoud Sayed <tarekms@microsoft.com>2016-09-05 12:13:23 -0700
committerJan Kotas <jkotas@microsoft.com>2016-09-05 12:13:23 -0700
commit0a3506ec958d920096e8f544d5b19100a5969e75 (patch)
tree674b0fb00772b77417f7c879d0036538faf4dc8c /src/utilcode
parent5c32341eeef9b25919d63051a9f9fd92fc55ce6d (diff)
downloadcoreclr-0a3506ec958d920096e8f544d5b19100a5969e75.tar.gz
coreclr-0a3506ec958d920096e8f544d5b19100a5969e75.tar.bz2
coreclr-0a3506ec958d920096e8f544d5b19100a5969e75.zip
Allow mapping LCID and culture names mapping for neutral culture (#7049)
This change is to pass the flag LOCALE_ALLOW_NEUTRAL_NAMES to the OS API to allow mapping LCID to/from culture names.
Diffstat (limited to 'src/utilcode')
-rw-r--r--src/utilcode/newapis.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utilcode/newapis.cpp b/src/utilcode/newapis.cpp
index fbf2023ab8..3717f0280d 100644
--- a/src/utilcode/newapis.cpp
+++ b/src/utilcode/newapis.cpp
@@ -1091,11 +1091,11 @@ inline BOOL IsInvariantCasing(__in LPCWSTR lpLocaleName, __in DWORD dwMapFlags)
int retVal = 0;
#if !defined(ENABLE_DOWNLEVEL_FOR_NLS)
- retVal = ::LCIDToLocaleName(Locale, lpName, cchName, dwFlags);
+ retVal = ::LCIDToLocaleName(Locale, lpName, cchName, dwFlags | LOCALE_ALLOW_NEUTRAL_NAMES);
#else
#ifdef FEATURE_CORECLR
- retVal = DownLevel::LCIDToLocaleName(Locale, lpName,cchName,dwFlags);
+ retVal = DownLevel::LCIDToLocaleName(Locale, lpName,cchName,dwFlags | LOCALE_ALLOW_NEUTRAL_NAMES);
#endif // FEATURE_CORECLR
typedef int (WINAPI *PFNLCIDToLocaleName)(LCID, LPWSTR,int ,DWORD);
@@ -1136,10 +1136,10 @@ inline BOOL IsInvariantCasing(__in LPCWSTR lpLocaleName, __in DWORD dwMapFlags)
LCID retVal = 0;
#if !defined(ENABLE_DOWNLEVEL_FOR_NLS)
- return ::LocaleNameToLCID(lpName, dwFlags);
+ return ::LocaleNameToLCID(lpName, dwFlags | LOCALE_ALLOW_NEUTRAL_NAMES);
#else
#ifdef FEATURE_CORECLR
- retVal = DownLevel::LocaleNameToLCID(lpName, dwFlags);
+ retVal = DownLevel::LocaleNameToLCID(lpName, dwFlags | LOCALE_ALLOW_NEUTRAL_NAMES);
#endif // FEATURE_CORECLR
typedef int (WINAPI *PFNLocaleNameToLCID)(LPCWSTR,DWORD);