curl: Update from 7.48 to 7.49
[termux-packages] / packages / tmux / tmux.c.patch
1 diff -u -r ../tmux-2.2/tmux.c ./tmux.c
2 --- ../tmux-2.2/tmux.c 2016-03-05 12:55:49.000000000 -0500
3 +++ ./tmux.c 2016-04-11 04:36:26.594521819 -0400
4 @@ -24,7 +24,9 @@
5 #include <event.h>
6 #include <fcntl.h>
7 #include <getopt.h>
8 +#ifndef __ANDROID__
9 #include <langinfo.h>
10 +#endif
11 #include <locale.h>
12 #include <pwd.h>
13 #include <stdlib.h>
14 @@ -195,10 +197,12 @@
15 if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) {
16 if (setlocale(LC_CTYPE, "") == NULL)
17 errx(1, "invalid LC_ALL, LC_CTYPE or LANG");
18 +#ifndef __ANDROID__
19 s = nl_langinfo(CODESET);
20 if (strcasecmp(s, "UTF-8") != 0 &&
21 strcasecmp(s, "UTF8") != 0)
22 errx(1, "need UTF-8 locale (LC_CTYPE) but have %s", s);
23 +#endif
24 }
25
26 setlocale(LC_TIME, "");