From 2fcf6987fb2d97d29d24aed1ad0d7f2a3616e624 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 10 Aug 2015 16:10:28 +0200 Subject: [PATCH] Set LC_NUMERIC to C. This prevents floating point values that are stored as ASCII in files from being misinterpreted if the locale changes. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index a92a49b..9282a1e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -137,6 +137,7 @@ int main(int argc, char *argv[]) bindtextdomain("blobwars", LOCALEDIR); setlocale(LC_ALL, ""); + setlocale(LC_NUMERIC, "C"); textdomain("blobwars"); atexit(cleanup); -- 2.39.5