Discontinue HPUX support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user