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

24 lines
522 B
Diff
Raw Normal View History

2020-06-23 19:22:26 +00:00
--- ./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 @@
2017-07-16 16:42:11 +00:00
*/
#include "locale.h"
2020-06-23 19:22:26 +00:00
-#if !defined(WINDOWS)
+#if !defined(WINDOWS) && !defined(__ANDROID__)
2017-07-16 16:42:11 +00:00
#include "langinfo.h"
2020-06-23 19:22:26 +00:00
#endif
2017-07-16 16:42:11 +00:00
2020-06-23 19:22:26 +00:00
@@ -474,9 +474,11 @@
2017-07-16 16:42:11 +00:00
ANGBAND_SYS = mstr;
2020-06-23 19:22:26 +00:00
#if !defined(WINDOWS)
2017-07-16 16:42:11 +00:00
if (setlocale(LC_CTYPE, "")) {
+#ifndef __ANDROID__
/* Require UTF-8 */
if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
quit("Angband requires UTF-8 support");
+#endif
}
2020-06-23 19:22:26 +00:00
#endif
2017-07-16 16:42:11 +00:00