Changeset f5da476 for lib


Ignore:
Timestamp:
2011-07-02T16:34:42Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a010498
Parents:
9e7a566
Message:

Fixed use of g_iconv() in do_iconv(). This was done wrong for ages and
apparently screwed up charset handling in OSCAR pretty badly.. Found and
fixed by dalias (#813). May or may not also fix other bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r9e7a566 rf5da476  
    400400        cd = g_iconv_open( to_cs, from_cs );
    401401        if( cd == (GIConv) -1 )
    402                 return( -1 );
     402                return -1;
    403403       
    404404        inbytesleft = size ? size : strlen( src );
     
    408408        g_iconv_close( cd );
    409409       
    410         if( res == (size_t) -1 )
    411                 return( -1 );
     410        if( res != 0 )
     411                return -1;
    412412        else
    413                 return( outbuf - dst );
     413                return outbuf - dst;
    414414}
    415415
Note: See TracChangeset for help on using the changeset viewer.