changeset: 272:78796ae89bc6
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Mon Aug 18 09:31:01 2008 +0100
files: dmenu.c
description:
getting rid of setlocale(), it doesn't seem to make sense with Xmb, artifact of Xutf8 times
diff -r a9aa31d7133a -r 78796ae89bc6 dmenu.c
--- a/dmenu.c Tue Jul 29 19:20:53 2008 +0100
+++ b/dmenu.c Mon Aug 18 09:31:01 2008 +0100
@@ -1,7 +1,6 @@
/* See LICENSE file for copyright and license details. */
#define _BSD_SOURCE
#include <ctype.h>
-#include <locale.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -719,7 +718,7 @@
else
eprint("usage: dmenu [-i] [-b] [-fn <font>] [-nb <color>] [-nf <color>]\n"
" [-p <prompt>] [-sb <color>] [-sf <color>] [-v]\n");
- if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
+ if(!XSupportsLocale())
fprintf(stderr, "warning: no locale support\n");
if(!(dpy = XOpenDisplay(0)))
eprint("dmenu: cannot open display\n");
Received on Mon Aug 18 2008 - 08:31:05 UTC
This archive was generated by hypermail 2.2.0 : Mon Aug 18 2008 - 08:36:09 UTC