--- a/misc/liblua/llex.c Sat Oct 08 14:52:16 2011 +0200
+++ b/misc/liblua/llex.c Sat Oct 08 14:55:13 2011 +0200
@@ -176,9 +176,15 @@
static void trydecpoint (LexState *ls, SemInfo *seminfo) {
/* format error: try to update decimal point separator */
+#ifndef ANDROID
struct lconv *cv = localeconv();
+#endif
char old = ls->decpoint;
+#ifdef ANDROID
+ ls->decpoint = '.';
+#else
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 */