[vlc-devel] [RFC] [PATCH] contrib: lua: do not use localeconv only for android

Marvin Scholz epirat07 at gmail.com
Fri Dec 29 00:59:11 CET 2017


lua requires localeconv to properly parse floating point numbers in a
locale independent way. Without it, lua will not be able to parse
numbers like 0.5 properly on locales where the decimal separator is not
a . (dot).
---
 contrib/src/lua/rules.mak | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index cdd4ce936b..7fa7c9c350 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -44,9 +44,11 @@ lua: lua-$(LUA_VERSION).tar.gz .sum-lua
 	$(APPLY) $(SRC)/lua/lua-noreadline.patch
 	$(APPLY) $(SRC)/lua/no-dylibs.patch
 	$(APPLY) $(SRC)/lua/luac-32bits.patch
-	$(APPLY) $(SRC)/lua/no-localeconv.patch
 	$(APPLY) $(SRC)/lua/lua-ios-support.patch
 	$(APPLY) $(SRC)/lua/implib.patch
+ifdef HAVE_ANDROID
+	$(APPLY) $(SRC)/lua/no-localeconv.patch
+endif
 ifdef HAVE_WINSTORE
 	$(APPLY) $(SRC)/lua/lua-winrt.patch
 endif
-- 
2.14.3 (Apple Git-98)



More information about the vlc-devel mailing list