mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 13:03:31 +00:00
24 lines
536 B
Diff
24 lines
536 B
Diff
--- ./src/main.c.orig 2021-08-01 00:28:01.000000000 +0200
|
|
+++ ./src/main.c 2021-09-10 09:34:27.031713786 +0200
|
|
@@ -37,7 +37,7 @@
|
|
*/
|
|
#include <locale.h>
|
|
|
|
-#if !defined(WINDOWS)
|
|
+#if !defined(WINDOWS) && !defined(__ANDROID__)
|
|
#include <langinfo.h>
|
|
#endif
|
|
|
|
@@ -475,9 +475,11 @@
|
|
ANGBAND_SYS = mstr;
|
|
#if !defined(WINDOWS) && !defined(DJGPP)
|
|
if (setlocale(LC_CTYPE, "")) {
|
|
+#ifndef __ANDROID__
|
|
/* Require UTF-8 */
|
|
if (!streq(nl_langinfo(CODESET), "UTF-8"))
|
|
quit("Angband requires UTF-8 support");
|
|
+#endif
|
|
}
|
|
#endif
|
|
|