Update fish from 2.1.2 to 2.2.0
[termux-packages] / packages / angband / no_langinfo.patch
CommitLineData
59f0d218
FF
1diff -u -r ../angband-v3.5.0/src/main.c ./src/main.c
2--- ../angband-v3.5.0/src/main.c 2013-12-24 16:56:52.000000000 +0100
3+++ ./src/main.c 2014-02-06 03:15:12.000000000 +0100
4@@ -23,8 +23,10 @@
5 #include "savefile.h"
6
7 /* locale junk */
8+#ifndef __ANDROID__
9 #include "locale.h"
10 #include "langinfo.h"
11+#endif
12
13 /*
14 * Some machines have a "main()" function in their "main-xxx.c" file,
15@@ -555,11 +557,13 @@
16 if (mstr)
17 ANGBAND_SYS = mstr;
18
19+#ifndef __ANDROID__
20 if (setlocale(LC_CTYPE, "")) {
21 /* Require UTF-8 */
22 if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
23 quit("Angband requires UTF-8 support");
24 }
25+#endif
26
27 /* Try the modules in the order specified by modules[] */
28 for (i = 0; i < (int)N_ELEMENTS(modules); i++)