Commit | Line | Data |
---|---|---|
f2748b7e OS |
1 | diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c |
2 | index f4b597c..b88092d 100644 | |
3 | --- a/src/command/cmd_funcs.c | |
4 | +++ b/src/command/cmd_funcs.c | |
5 | @@ -46,7 +46,9 @@ | |
6 | #include <sys/types.h> | |
7 | #include <fcntl.h> | |
8 | #include <unistd.h> | |
9 | +#ifndef __ANDROID__ | |
10 | #include <langinfo.h> | |
11 | +#endif | |
12 | #include <ctype.h> | |
13 | ||
14 | #include "profanity.h" | |
15 | @@ -4746,7 +4748,11 @@ cmd_privileges(ProfWin *window, const char *const command, gchar **args) | |
16 | gboolean | |
17 | cmd_charset(ProfWin *window, const char *const command, gchar **args) | |
18 | { | |
19 | - char *codeset = nl_langinfo(CODESET); | |
20 | + #if defined(__ANDROID__) | |
21 | + char *codeset = "UTF-8"; | |
22 | + #else | |
23 | + char *codeset = nl_langinfo(CODESET); | |
24 | + #endif | |
25 | char *lang = getenv("LANG"); | |
26 | ||
27 | cons_show("Charset information:"); |