msvcrt: Use LC_COLLATE category in strcoll functions.
This commit is contained in:
parent
2cb51d9f4a
commit
0c91daee8b
|
@ -489,7 +489,7 @@ int CDECL MSVCRT_strcoll_l( const char* str1, const char* str2, MSVCRT__locale_t
|
|||
else
|
||||
locinfo = locale->locinfo;
|
||||
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], 0, str1, -1, str2, -1)-CSTR_EQUAL;
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_COLLATE], 0, str1, -1, str2, -1)-CSTR_EQUAL;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
@ -512,7 +512,7 @@ int CDECL MSVCRT__stricoll_l( const char* str1, const char* str2, MSVCRT__locale
|
|||
else
|
||||
locinfo = locale->locinfo;
|
||||
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], NORM_IGNORECASE,
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_COLLATE], NORM_IGNORECASE,
|
||||
str1, -1, str2, -1)-CSTR_EQUAL;
|
||||
}
|
||||
|
||||
|
@ -536,7 +536,7 @@ int CDECL MSVCRT_strncoll_l( const char* str1, const char* str2, MSVCRT_size_t c
|
|||
else
|
||||
locinfo = locale->locinfo;
|
||||
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], 0, str1, count, str2, count)-CSTR_EQUAL;
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_COLLATE], 0, str1, count, str2, count)-CSTR_EQUAL;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
@ -559,7 +559,7 @@ int CDECL MSVCRT__strnicoll_l( const char* str1, const char* str2, MSVCRT_size_t
|
|||
else
|
||||
locinfo = locale->locinfo;
|
||||
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], NORM_IGNORECASE,
|
||||
return CompareStringA(locinfo->lc_handle[MSVCRT_LC_COLLATE], NORM_IGNORECASE,
|
||||
str1, count, str2, count)-CSTR_EQUAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue