Changeset f9756bd for set.c


Ignore:
Timestamp:
2008-03-30T21:26:16Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ddba0ae
Parents:
5ecf96b
Message:

Changed charset handling: irc_t keeps two iconv structures, which are just
used for every line sent and received, so now there's no need to use
g_iconv_open() every time a message comes in/out. Also, fixed a small
memory leak that was there for a long time but somehow never caught my
attention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • set.c

    r5ecf96b rf9756bd  
    230230        return value;
    231231}
    232 
    233 char *set_eval_charset( set_t *set, char *value )
    234 {
    235         GIConv cd;
    236 
    237         if( g_strcasecmp( value, "none" ) == 0 )
    238                 return value;
    239 
    240         cd = g_iconv_open( "UTF-8", value );
    241         if( cd == (GIConv) -1 )
    242                 return NULL;
    243 
    244         g_iconv_close( cd );
    245         return value;
    246 }
Note: See TracChangeset for help on using the changeset viewer.