File kterm-6.2.0-glibc2.2-setlocale.patch of Package kterm

--- kterm-6.2.0/xim.c.orig	Tue Nov 14 21:04:13 2000
+++ kterm-6.2.0/xim.c	Tue Nov 14 21:13:23 2000
@@ -175,6 +175,10 @@
 SetLocale(localelist)
 char	*localelist;
 {
+#if (defined (__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2)))
+	if (setlocale(LC_CTYPE,"") && XSupportsLocale()) return;
+	fprintf(stderr, "Couldn't set locale: %s\n",setlocale(LC_CTYPE,NULL));
+#else
 	char **locales;
 
 	for (locales = ParseList(localelist); *locales; locales++) {
@@ -182,6 +186,7 @@
 	}
 
 	fprintf(stderr, "Couldn't set locale: %s\n", localelist);
+#endif
 }
 
 static XIMStyle
openSUSE Build Service is sponsored by