misc/liblua/llex.c
branchhedgeroid
changeset 6039 d75329716a02
parent 2812 0a24853de796
child 10017 de822cd3df3a
--- 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 */