[devhelp] main: add generic locale initialization
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] main: add generic locale initialization
- Date: Sat, 21 Jul 2012 14:02:53 +0000 (UTC)
commit cad06a9e6be7e9127d923d062892569435be7b0f
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Jun 12 12:40:15 2012 +0200
main: add generic locale initialization
src/dh-main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-main.c b/src/dh-main.c
index d867ba6..12138ec 100644
--- a/src/dh-main.c
+++ b/src/dh-main.c
@@ -22,6 +22,7 @@
#include "config.h"
#include <stdlib.h>
+#include <locale.h>
#include <string.h>
#include <glib/gi18n.h>
@@ -260,6 +261,7 @@ main (int argc, char **argv)
}
#endif
+ setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]