[ostree] main: Call setlocale()
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] main: Call setlocale()
- Date: Wed, 4 Sep 2013 21:07:20 +0000 (UTC)
commit 8a59f6561c800adcca31e90afd84b2df53460264
Author: Colin Walters <walters verbum org>
Date: Wed Sep 4 16:44:54 2013 -0400
main: Call setlocale()
While we're not translating anything right now, we should still
setlocale() so that our output is formatted as command line users will
expect.
src/ostree/main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/main.c b/src/ostree/main.c
index b7d4024..f23e826 100644
--- a/src/ostree/main.c
+++ b/src/ostree/main.c
@@ -26,6 +26,7 @@
#include <errno.h>
#include <string.h>
+#include <locale.h>
#include "ot-main.h"
#include "ot-builtins.h"
@@ -66,6 +67,8 @@ main (int argc,
GError *error = NULL;
int ret;
+ setlocale (LC_ALL, "");
+
ret = ostree_run (argc, argv, commands, &error);
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
ostree_usage (argv, commands, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]