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

24 lines
536 B
Diff
Raw Permalink Normal View History

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