summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-06-24 17:01:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-06-24 17:03:42 +0100
commit44d444acaa8cfd61ea25c82fb7c3bff5f41f0835 (patch)
treefad0af716006ebf841728b2358be41ffb061e845 /overlay
parent453792c501b4553ed3c4135057249e300d3c0362 (diff)
overlay: Enable locale
Enabling locale allows us to use thousand separators and other such human touches in the output. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay')
-rw-r--r--overlay/overlay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/overlay/overlay.c b/overlay/overlay.c
index 7759c2b7..035e02c6 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -35,6 +35,7 @@
#include <signal.h>
#include <getopt.h>
#include <time.h>
+#include <locale.h>
#include "overlay.h"
#include "chart.h"
@@ -857,6 +858,7 @@ int main(int argc, char **argv)
int daemonize = 1, renice = 0;
int i;
+ setlocale(LC_ALL, "");
config_init(&config);
opterr = 0;