summaryrefslogtreecommitdiff
path: root/data/weechat/iconv.diff
blob: b08894b167d66e215c616ed08558b20e89d72aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -ru weechat-0.2.6/configure.in weechat-0.2.6+iPhone/configure.in
--- weechat-0.2.6/configure.in	2007-09-05 14:14:00.000000000 +0000
+++ weechat-0.2.6+iPhone/configure.in	2008-07-31 02:49:39.000000000 +0000
@@ -210,15 +210,7 @@
       LIBS="$LIBS $ICONV_LFLAGS"
    fi
    AC_MSG_CHECKING(for iconv usability in programs)   
-   AC_TRY_RUN([
-	#include <iconv.h>
-	int main(int argc, char **argv) {
-	    iconv_t conv = iconv_open("ISO8859-1", "UTF-8");
-            if (conv != (iconv_t) -1) {
-	      return 0;
-            }
-	    return 1;
-      }],iconv_found="yes")
+   iconv_found="yes"
   if test "x$iconv_found" = "xno" ; then
      AC_MSG_RESULT(no)
   else
diff -ru weechat-0.2.6/src/common/util.h weechat-0.2.6+iPhone/src/common/util.h
--- weechat-0.2.6/src/common/util.h	2007-07-11 11:21:02.000000000 +0000
+++ weechat-0.2.6+iPhone/src/common/util.h	2008-07-31 03:29:37.000000000 +0000
@@ -28,7 +28,7 @@
 extern int ascii_strcasecmp (char *, char *);
 extern int ascii_strncasecmp (char *, char *, int);
 extern char *ascii_strcasestr (char *, char *);
-extern char *weechat_iconv (char *, char *, char *);
+extern char *weechat_iconv (int, char *, char *, char *);
 extern char *weechat_iconv_to_internal (char *, char *);
 extern char *weechat_iconv_from_internal (char *, char *);
 extern void weechat_iconv_fprintf (FILE *, char *, ...);