commit 1783f7313217b2607bd4863268ae5ee8f3c4ed38
parent 4765e836e8bdf2e0218008e4ed4bc94855d6f78d
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Fri, 26 May 2006 17:22:34 +0200
same with -current until iconv is used
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/liblitz/font.c b/liblitz/font.c
@@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#include <cext.h>
#include "blitz.h"
@@ -28,6 +29,7 @@ blitz_loadfont(Display *dpy, BlitzFont *font, char *fontstr)
char **missing = nil, *def = "?";
int n;
+ setlocale(LC_ALL, "");
if(font->set)
XFreeFontSet(dpy, font->set);
font->set = XCreateFontSet(dpy, fontname, &missing, &n, &def);