From 8e3edd7709fb9b42d80200d938bcd82575464524 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 4 Jan 2016 21:09:47 -0500 Subject: [PATCH] weechat: Fix 64-bit build --- packages/weechat/src-core-weechat.c.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/weechat/src-core-weechat.c.patch diff --git a/packages/weechat/src-core-weechat.c.patch b/packages/weechat/src-core-weechat.c.patch new file mode 100644 index 000000000..ec1f15cd9 --- /dev/null +++ b/packages/weechat/src-core-weechat.c.patch @@ -0,0 +1,14 @@ +diff -u -r ../weechat-1.3/src/core/weechat.c ./src/core/weechat.c +--- ../weechat-1.3/src/core/weechat.c 2015-08-16 02:27:07.000000000 -0400 ++++ ./src/core/weechat.c 2016-01-04 11:26:46.103203700 -0500 +@@ -613,7 +613,9 @@ + textdomain (PACKAGE); + #endif /* ENABLE_NLS */ + +-#ifdef HAVE_LANGINFO_CODESET ++#ifdef __ANDROID__ ++ weechat_local_charset = strdup ("UTF-8"); ++#elif defined(HAVE_LANGINFO_CODESET) + weechat_local_charset = strdup (nl_langinfo (CODESET)); + #else + weechat_local_charset = strdup ("");