summaryrefslogtreecommitdiffstats
path: root/lua-5.1.4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lua-5.1.4/src/llex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lua-5.1.4/src/llex.c b/lua-5.1.4/src/llex.c
index 6dc319358..02849fa8f 100644
--- a/lua-5.1.4/src/llex.c
+++ b/lua-5.1.4/src/llex.c
@@ -176,9 +176,13 @@ static void buffreplace (LexState *ls, char from, char to) {
static void trydecpoint (LexState *ls, SemInfo *seminfo) {
/* format error: try to update decimal point separator */
- struct lconv *cv = localeconv();
char old = ls->decpoint;
+#if defined(ANDROID_NDK)
+ ls->decpoint = '.';
+#else
+ struct lconv *cv = localeconv();
ls->decpoint = (cv ? cv->decimal_point[0] : '.');
+#endif
buffreplace(ls, old, ls->decpoint); /* try updated decimal separator */
if (!luaO_str2d(luaZ_buffer(ls->buff), &seminfo->r)) {
/* format error with correct decimal point: no more options */