Discontinue HPUX support

This commit is contained in:
Chase
2022-07-22 21:42:06 -05:00
committed by Jon Trulson
parent bd83b53d56
commit edf4319548
235 changed files with 198 additions and 6290 deletions

View File

@@ -399,35 +399,6 @@ CreateBackdropDialog(
/* from that locale's description file from the system location */
lang = setlocale (LC_CTYPE,NULL);
#ifdef hpux /* hpux-specific parsing of the locale string */
/* The following code is identical to the
ExtractLocaleName function in WmResParse.c
from dtwm
*/
#define MAXLOCALE 64 /* buffer size of locale name */
{ char *start;
char *end;
int len;
static char buf[MAXLOCALE];
/* If lang has a substring ":<category>;", extract <category>
* from the first such occurrence as the locale name.
*/
start = lang;
if (start = strchr (lang, ':')) {
start++;
if (end = strchr (start, ';')) {
len = end - start;
strncpy(buf, start, len);
*(buf + len) = '\0';
lang = buf;
}
}
}
#endif /* hpux */
bd_desc = (char *)XtMalloc(strlen("/usr/dt/backdrops/desc.") + strlen(lang) + 1);
strcpy (bd_desc,"/usr/dt/backdrops/desc.");
strcat (bd_desc, lang);