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:
1 parent
1ae83002b5
commit
8a59f6561c
1 file changed
+3
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
#include "ot-main.h"
|
#include "ot-main.h"
|
||||||
#include "ot-builtins.h"
|
#include "ot-builtins.h"
|
||||||
@@ -66,6 +67,8 @@ main (int argc,
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
ret = ostree_run (argc, argv, commands, &error);
|
ret = ostree_run (argc, argv, commands, &error);
|
||||||
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
|
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
|
||||||
ostree_usage (argv, commands, TRUE);
|
ostree_usage (argv, commands, TRUE);
|
||||||
|
|||||||
Reference in new issue
Block a user