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 2013-09-04 16:44:54 -04:00
parent 1ae83002b5
commit 8a59f6561c
1 changed files with 3 additions and 0 deletions

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);