summaryrefslogtreecommitdiff
path: root/recipes/xorg-lib/libx11/fix-disable-xlocale.diff
blob: 9dbf6dac689ef1b73d8650488ad9f236f9efe0a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- libX11-X11R7.0-1.0.0/src/Font.c.orig	2006-03-12 18:35:42.000000000 +0100
+++ libX11-X11R7.0-1.0.0/src/Font.c	2006-03-12 18:40:27.000000000 +0100
@@ -701,7 +701,11 @@
     }
     if (l - 2 - (p - charset) < 0)
 	return 0;
+#ifdef XLOCALE
     if (_XlcNCompareISOLatin1(name + l - 2 - (p - charset), charset, p - charset))
+#else
+    if (strncasecmp(name + l - 2 - (p - charset), charset, p - charset))
+#endif
 	return 0;
     if (strlen(p + 1) + l - 1 >= sizeof(buf) - 1)
 	return 0;