Init: Add setlocale for x font

This commit is contained in:
Martin Duquesnoy
2011-06-13 20:51:31 +02:00
parent 2aa654709e
commit 43f44ae9fd
15 changed files with 6 additions and 2868 deletions

View File

@@ -39,7 +39,8 @@
* \param y Y position
* \param name Path of the image
*/
static void draw_image(Drawable dr, int x, int y, int w, int h, char *name)
static void
draw_image(Drawable dr, int x, int y, int w, int h, char *name)
{
Imlib_Image image;

View File

@@ -80,6 +80,9 @@ init_font(void)
int d;
XFontStruct **xfs = NULL;
/* locale support */
setlocale(LC_CTYPE, "");
if(!conf.font)
conf.font = xstrdup("fixed");

View File

@@ -50,6 +50,7 @@
#include <dirent.h>
#include <err.h>
#include <pthread.h>
#include <locale.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/wait.h>