dmenu: added a patch to fix segfault due to setlocale().

This commit is contained in:
Juan RP 2012-12-16 06:48:54 +01:00
parent bd7b0da8ad
commit e9d5a703b5
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- draw.c.orig 2012-12-16 06:41:04.477405084 +0100
+++ draw.c 2012-12-16 06:41:34.027700813 +0100
@@ -95,7 +95,7 @@ DC *
initdc(void) {
DC *dc;
- if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
+ if(!setlocale(LC_CTYPE, NULL) || !XSupportsLocale())
fputs("no locale support\n", stderr);
if(!(dc = calloc(1, sizeof *dc)))
eprintf("cannot malloc %u bytes:", sizeof *dc);

View File

@ -1,7 +1,7 @@
# Template file for 'dmenu'
pkgname=dmenu
version=4.5
revision=2
revision=3
makedepends="libXinerama-devel"
short_desc="A generic menu for X"
maintainer="davehome <davehome@redthumb.info.tm>"