diff options
Diffstat (limited to 'net-im/ysm/files/patch-iconv')
-rw-r--r-- | net-im/ysm/files/patch-iconv | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/net-im/ysm/files/patch-iconv b/net-im/ysm/files/patch-iconv deleted file mode 100644 index 68f9deb..0000000 --- a/net-im/ysm/files/patch-iconv +++ /dev/null @@ -1,24 +0,0 @@ ---- YSM_ToolBox.c.orig Fri Apr 12 11:07:38 2002 -+++ YSM_ToolBox.c Tue May 28 11:19:33 2002 -@@ -45,6 +45,7 @@ - #include "YSM.h" - /* International Languages Charset Convertion! */ - #include "YSM_Iconv.h" -+#include <iconv.h> - - - static struct timeval tv; -@@ -428,9 +429,12 @@ - bytes_in = strlen(buf_from) + 1; - bytes_out = maxlen - 1; - conv_d = iconv_open(charset_to, charset_from); -- bytes_res = iconv(conv_d, &inptr, &bytes_in, &outptr, &bytes_out); -+ if ( conv_d == (iconv_t)( -1)) { perror("iconv_open:"); return -1; } -+ else { -+ bytes_res = iconv(conv_d, (const char **)&inptr, &bytes_in, &outptr, &bytes_out); - iconv_close(conv_d); - return 0; -+ } - } - - #endif |