[gnome-terminal] Make testskey locale aware
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Make testskey locale aware
- Date: Tue, 1 Sep 2009 16:04:45 +0000 (UTC)
commit d3fee977d9f5415255540904c94575f4451aaf95
Author: Christian Persch <chpe gnome org>
Date: Tue Sep 1 15:27:27 2009 +0200
Make testskey locale aware
src/skey/test.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/skey/test.c b/src/skey/test.c
index 860a585..da67c44 100644
--- a/src/skey/test.c
+++ b/src/skey/test.c
@@ -1,5 +1,6 @@
#include <config.h>
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -71,6 +72,9 @@ int main(int argc, char *argv[])
{
guint i;
+ if (!setlocale (LC_ALL, ""))
+ g_error ("Locale not supported by C library!\n");
+
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-terminal");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]