Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=f9539566d24e1b7af87676388f701d1225f4b368
commit f9539566d24e1b7af87676388f701d1225f4b368 Author: James Buren <[email protected]> Date: Sat Aug 11 11:03:19 2012 -0500 enable locale usage. utf8 won't work without this. diff --git a/fwsetup.c b/fwsetup.c index 8f7c681..14a3156 100644 --- a/fwsetup.c +++ b/fwsetup.c @@ -6,6 +6,8 @@ extern int main(void) memzero(&db,sizeof(struct database)); + db.locale = setlocale(LC_ALL,""); + #ifdef NEWT if(newtInit() != 0) { diff --git a/fwsetup.h b/fwsetup.h index 052ec9d..4e77bb6 100644 --- a/fwsetup.h +++ b/fwsetup.h @@ -6,16 +6,20 @@ #include <stdarg.h> #include <string.h> #include <unistd.h> +#include <locale.h> #include <assert.h> +#include <wchar.h> #define _(S) S #define memzero(P,N) memset(P,0,N) +#define WINDOW_TITLE _("Frugalware Linux Installer") #ifdef NEWT #include <newt.h> struct database { + char *locale; int screen_width; int screen_height; int window_width; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
