Use "C" for LC_NUMERIC locale when serializing settings files. Avoids comma in floating point numbers on some locales. Solves issue #92.

pull/93/head
Paulo Matias 11 years ago
parent 80586c4a2a
commit a8b1536b1c

@ -114,6 +114,7 @@ function DocSettings:flush()
end
local f_out = io.open(self.file, "w")
if f_out ~= nil then
os.setlocale('C', 'numeric')
local out = {"-- we can read Lua syntax here!\nreturn "}
self:_serialize(self.data, out, 0)
table.insert(out, "\n")

Loading…
Cancel
Save