diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-12-30 14:17:44 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-12-30 14:17:44 +1030 |
commit | 2416b145073211b840781da6abf4b6d97f4657a6 (patch) | |
tree | 6e92a13a7cc8ef8357245bc3ef320f5841350991 /lua-cjson-1.0devel-1.rockspec | |
parent | 6cc88e3ac5275868e168acaf60203563f131355b (diff) | |
download | lua-cjson-2416b145073211b840781da6abf4b6d97f4657a6.tar.gz lua-cjson-2416b145073211b840781da6abf4b6d97f4657a6.tar.bz2 lua-cjson-2416b145073211b840781da6abf4b6d97f4657a6.zip |
Add fpconv to work around comma decimal points
Create a separate buffer and translate comma <> dot before calling
strtod(), and after calling sprintf() as required.
- Add "update_locale" Lua API call and init locale on module load.
- Move sprintf format string to fpconv
Diffstat (limited to 'lua-cjson-1.0devel-1.rockspec')
-rw-r--r-- | lua-cjson-1.0devel-1.rockspec | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua-cjson-1.0devel-1.rockspec b/lua-cjson-1.0devel-1.rockspec index 3890ec1..fa20c53 100644 --- a/lua-cjson-1.0devel-1.rockspec +++ b/lua-cjson-1.0devel-1.rockspec | |||
@@ -23,11 +23,11 @@ build = { | |||
23 | type = "builtin", | 23 | type = "builtin", |
24 | modules = { | 24 | modules = { |
25 | cjson = { | 25 | cjson = { |
26 | sources = { "lua_cjson.c", "strbuf.c" }, | 26 | sources = { "lua_cjson.c", "strbuf.c", "fpconv.c" }, |
27 | defines = { | ||
27 | -- Optional workaround: | 28 | -- Optional workaround: |
28 | -- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required | 29 | -- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required |
29 | -- on some Solaris platforms. | 30 | -- on some Solaris platforms. |
30 | defines = { | ||
31 | -- LuaRocks does not support platform specific configuration for Solaris. | 31 | -- LuaRocks does not support platform specific configuration for Solaris. |
32 | -- Uncomment the line below on Solaris platforms. | 32 | -- Uncomment the line below on Solaris platforms. |
33 | -- "USE_INTERNAL_ISINF" | 33 | -- "USE_INTERNAL_ISINF" |