From: Guus Sliepen Date: Mon, 10 Aug 2015 14:10:28 +0000 (+0200) Subject: Set LC_NUMERIC to C. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2fcf6987fb2d97d29d24aed1ad0d7f2a3616e624;p=quix0rs-blobwars.git Set LC_NUMERIC to C. This prevents floating point values that are stored as ASCII in files from being misinterpreted if the locale changes. --- 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);