Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> |
| 4 | --- libX11-X11R7.0-1.0.0/src/Font.c.orig 2006-03-12 18:35:42.000000000 +0100 |
| 5 | +++ libX11-X11R7.0-1.0.0/src/Font.c 2006-03-12 18:40:27.000000000 +0100 |
| 6 | @@ -701,7 +701,11 @@ |
| 7 | } |
| 8 | if (l - 2 - (p - charset) < 0) |
| 9 | return 0; |
| 10 | +#ifdef XLOCALE |
| 11 | if (_XlcNCompareISOLatin1(name + l - 2 - (p - charset), charset, p - charset)) |
| 12 | +#else |
| 13 | + if (strncasecmp(name + l - 2 - (p - charset), charset, p - charset)) |
| 14 | +#endif |
| 15 | return 0; |
| 16 | if (strlen(p + 1) + l - 1 >= sizeof(buf) - 1) |
| 17 | return 0; |