summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index a1215d97..f0844bc3 100644
--- a/main.c
+++ b/main.c
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <stddef.h>
#include <time.h>
+#include <locale.h>
#ifdef __linux__
#include <sys/prctl.h>
#endif
@@ -426,6 +427,7 @@ sigterm_handler (int sig) {
int
main (int argc, char *argv[]) {
+ setlocale (LC_NUMERIC, "C");
fprintf (stderr, "starting deadbeef " VERSION "\n");
srand (time (NULL));
#ifdef __linux__