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

24 lines
517 B
Diff
Raw Normal View History

2021-09-10 09:33:01 +02:00
--- ./src/main.c.orig 2021-08-01 00:28:01.000000000 +0200
+++ ./src/main.c 2021-09-10 09:34:27.031713786 +0200
2020-06-23 21:22:26 +02:00
@@ -36,7 +36,7 @@
2017-07-16 18:42:11 +02:00
*/
#include "locale.h"
2020-06-23 21:22:26 +02:00
-#if !defined(WINDOWS)
+#if !defined(WINDOWS) && !defined(__ANDROID__)
2017-07-16 18:42:11 +02:00
#include "langinfo.h"
2020-06-23 21:22:26 +02:00
#endif
2017-07-16 18:42:11 +02:00
2021-09-10 09:33:01 +02:00
@@ -497,9 +497,11 @@
2017-07-16 18:42:11 +02:00
ANGBAND_SYS = mstr;
2020-06-23 21:22:26 +02:00
#if !defined(WINDOWS)
2017-07-16 18:42:11 +02:00
if (setlocale(LC_CTYPE, "")) {
+#ifndef __ANDROID__
/* Require UTF-8 */
2021-09-10 09:33:01 +02:00
if (!streq(nl_langinfo(CODESET), "UTF-8"))
2017-07-16 18:42:11 +02:00
quit("Angband requires UTF-8 support");
+#endif
}
2020-06-23 21:22:26 +02:00
#endif
2017-07-16 18:42:11 +02:00