projects
/
quix0rs-blobwars.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a9620
)
Set LC_NUMERIC to C.
author
Guus Sliepen
<guus@debian.org>
Mon, 10 Aug 2015 14:10:28 +0000
(16:10 +0200)
committer
Guus Sliepen
<guus@debian.org>
Mon, 10 Aug 2015 14:10:28 +0000
(16:10 +0200)
This prevents floating point values that are stored as ASCII in files
from being misinterpreted if the locale changes.
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index a92a49b046fc3c27bfc91d68a6c13e6a9e872c84..9282a1e23a764f703ef04405f927274f077d0031 100644
(file)
--- 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);