Init: Add setlocale for x font
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -80,6 +80,9 @@ init_font(void)
|
||||
int d;
|
||||
XFontStruct **xfs = NULL;
|
||||
|
||||
/* locale support */
|
||||
setlocale(LC_CTYPE, "");
|
||||
|
||||
if(!conf.font)
|
||||
conf.font = xstrdup("fixed");
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user