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.
This commit is contained in:
Colin Walters committed 2013-09-04 16:45:51 -04:00
1 parent 1ae83002b5
commit 8a59f6561c
1 file changed
+3
+3
View File
@@ -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);