Set numeric locale for Lua
authorIlya Zhuravlev <zhuravlevilya@ya.ru>
Mon, 18 Feb 2013 09:58:55 +0000 (13:58 +0400)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Mon, 18 Feb 2013 09:58:55 +0000 (13:58 +0400)
builtin/builtin.lua

index f2811fa9c4cc00dbaf71795bde331f293c8dae48..bf33cbe6bbd5555900a6e568e0a934a975891a4d 100644 (file)
@@ -8,6 +8,7 @@
 -- Initialize some very basic things
 print = minetest.debug
 math.randomseed(os.time())
+os.setlocale("C", "numeric")
 
 -- Load other files
 dofile(minetest.get_modpath("__builtin").."/serialize.lua")