1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

Fixed compilation problem with iconv under FreeBSD

This commit is contained in:
Sebastien Helleu
2007-01-06 23:57:59 +00:00
parent bbe2f9093c
commit 53acc07eb1
4 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-01-06
ChangeLog - 2007-01-07
Version 0.2.3 (under dev!):
* fixed compilation problem with iconv under FreeBSD
* fixed bugs with charset: now decodes/encodes nicks and channels in IRC
messages (bug #18716)
+2 -2
View File
@@ -202,7 +202,7 @@ weechat_iconv (char *from_code, char *to_code, char *string)
iconv_t cd;
char *inbuf;
int done;
ICONV_CONST char *ptr_inbuf;
char *ptr_inbuf;
char *ptr_outbuf;
size_t err, inbytesleft, outbytesleft;
@@ -223,7 +223,7 @@ weechat_iconv (char *from_code, char *to_code, char *string)
done = 0;
while (!done)
{
err = iconv (cd, &ptr_inbuf, &inbytesleft,
err = iconv (cd, (ICONV_CONST char **)(&ptr_inbuf), &inbytesleft,
&ptr_outbuf, &outbytesleft);
if (err == (size_t)(-1))
{
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-01-06
ChangeLog - 2007-01-07
Version 0.2.3 (under dev!):
* fixed compilation problem with iconv under FreeBSD
* fixed bugs with charset: now decodes/encodes nicks and channels in IRC
messages (bug #18716)
+2 -2
View File
@@ -202,7 +202,7 @@ weechat_iconv (char *from_code, char *to_code, char *string)
iconv_t cd;
char *inbuf;
int done;
ICONV_CONST char *ptr_inbuf;
char *ptr_inbuf;
char *ptr_outbuf;
size_t err, inbytesleft, outbytesleft;
@@ -223,7 +223,7 @@ weechat_iconv (char *from_code, char *to_code, char *string)
done = 0;
while (!done)
{
err = iconv (cd, &ptr_inbuf, &inbytesleft,
err = iconv (cd, (ICONV_CONST char **)(&ptr_inbuf), &inbytesleft,
&ptr_outbuf, &outbytesleft);
if (err == (size_t)(-1))
{