Discontinue HPUX support
This commit is contained in:
@@ -484,24 +484,14 @@ StrcollProc
|
||||
GetStrcollProc(void)
|
||||
{
|
||||
int Clang = 0;
|
||||
#if defined(__hpux)
|
||||
struct locale_data * li;
|
||||
#else
|
||||
char * locale;
|
||||
#endif
|
||||
|
||||
#define C_LANG "C"
|
||||
|
||||
/* if locale is C, use the explicit case insensitive compare */
|
||||
#if defined(__hpux)
|
||||
li = getlocale(LOCALE_STATUS);
|
||||
if ( NULL == li->LC_COLLATE_D || strcmp(C_LANG,li->LC_COLLATE_D) == 0 )
|
||||
Clang = 1;
|
||||
#else
|
||||
locale = setlocale(LC_COLLATE,NULL); /* put locale in buf */
|
||||
if (strcmp(locale,C_LANG) == 0)
|
||||
Clang = 1;
|
||||
#endif
|
||||
|
||||
if (Clang)
|
||||
return StrCaseCmp;
|
||||
|
||||
Reference in New Issue
Block a user