From 32fee0764e9e5e1a903ef5d16fb94718a86d7a09 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 29 Jan 2018 14:46:36 +1100 Subject: src/{luaconf,lobject,lstrlib}.js: lua_getlocaledecpoint now returns char code instead of string --- src/lstrlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lstrlib.js') diff --git a/src/lstrlib.js b/src/lstrlib.js index afed664..9863ba5 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -255,7 +255,7 @@ const addquoted = function(b, s, len) { */ const checkdp = function(buff) { if (luastring_indexOf(buff, '.'.charCodeAt(0)) < 0) { /* no dot? */ - let point = lua_getlocaledecpoint().charCodeAt(0); /* try locale point */ + let point = lua_getlocaledecpoint(); /* try locale point */ let ppoint = luastring_indexOf(buff, point); if (ppoint) buff[ppoint] = '.'; /* change it to a dot */ } -- cgit v1.2.3-54-g00ecf