termux-packages/packages/angband/src-main.c.patch

24 lines
522 B
Diff

--- ./src/main.c.orig 2020-06-03 11:09:59.000000000 +0200
+++ ./src/main.c 2020-06-23 21:18:19.236966219 +0200
@@ -36,7 +36,7 @@
*/
#include "locale.h"
-#if !defined(WINDOWS)
+#if !defined(WINDOWS) && !defined(__ANDROID__)
#include "langinfo.h"
#endif
@@ -474,9 +474,11 @@
ANGBAND_SYS = mstr;
#if !defined(WINDOWS)
if (setlocale(LC_CTYPE, "")) {
+#ifndef __ANDROID__
/* Require UTF-8 */
if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
quit("Angband requires UTF-8 support");
+#endif
}
#endif