25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

* src/mod_irc/iconv_erl.c (iconv_erl_control): Bugfix

SVN Revision: 119
This commit is contained in:
Alexey Shchepin 2003-07-03 07:49:59 +00:00
parent 8bee1ad5a6
commit c5bfac85a6
2 changed files with 10 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2003-07-03 Alexey Shchepin <alexey@sevcom.net>
* src/mod_irc/iconv_erl.c (iconv_erl_control): Bugfix
2003-06-30 Alexey Shchepin <alexey@sevcom.net> 2003-06-30 Alexey Shchepin <alexey@sevcom.net>
* src/mod_muc/mod_muc_room.erl: Fixed room destroying * src/mod_muc/mod_muc_room.erl: Fixed room destroying

View File

@ -56,18 +56,15 @@ static int iconv_erl_control(ErlDrvData drv_data,
ei_decode_string(buf, &index, string); ei_decode_string(buf, &index, string);
cd = iconv_open(to, from); cd = iconv_open(to, from);
// TODO: check result
/*
if(cd == (iconv_t) -1) if(cd == (iconv_t) -1)
{ {
perror ("iconv_open"); cd = iconv_open("ascii", "ascii");
} if(cd == (iconv_t) -1)
else
{ {
printf("iconv_open from=%s, to=%s OK\r\n", from, to); cd = iconv_open("ascii", "ascii");
printf("string=%s size=%d\r\n", string, size); }
} }
*/
outleft = avail = 4*size; outleft = avail = 4*size;
inleft = size; inleft = size;