From 5dd3207e5fda2f8f502a8a2f32f5484ea3f758b5 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sat, 31 Dec 2011 17:02:12 +1030 Subject: Remove "update_locale" Lua function Only update the locale when the module is initialised. cjson.new() can be used if the locale changes part way through program execution. --- tests/test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test.lua b/tests/test.lua index 99ac73a..6cb5666 100755 --- a/tests/test.lua +++ b/tests/test.lua @@ -211,14 +211,14 @@ local escape_tests = { local locale_tests = { function () os.setlocale("cs_CZ") - json.update_locale() + json.new() return "Setting locale to cs_CZ (comma separator)" end, { json.encode, { 1.5 }, true, { '1.5' } }, { json.decode, { "[ 10, \"test\" ]" }, true, { { 10, "test" } } }, function () os.setlocale("C") - json.update_locale() + json.new() return "Reverting locale to POSIX" end } -- cgit v1.2.3-55-g6feb